Open
Description
Bare bones expo project latest version and no toast.
import {router, Stack, useRouter} from "expo-router"
import {useEffect} from "react"
import { RootSiblingParent } from 'react-native-root-siblings';
import Toast from "react-native-root-toast"
import {Text, TouchableOpacity, View} from "react-native"
export default function RootLayout() {
return (
<RootSiblingParent>
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
<TouchableOpacity onPress={() => {
Toast.show('Test', {
duration: 5000 ,
});
}}>
<Text>test</Text>
</TouchableOpacity>
</View>
</RootSiblingParent>
)
}
Metadata
Metadata
Assignees
Labels
No labels