Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with latest Expo #175

Open
robertmylne opened this issue Feb 7, 2024 · 4 comments
Open

Doesn't work with latest Expo #175

robertmylne opened this issue Feb 7, 2024 · 4 comments

Comments

@robertmylne
Copy link

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>
	)
}
@liquid36
Copy link

liquid36 commented Feb 7, 2024

I had a similar error. Try installing react-native-root-siblings@^4.0.0.

@hichemfantar
Copy link

checkout https://github.com/calintamas/react-native-toast-message

@pgill-rbi
Copy link

@liquid36 solution worked for me!!!

@jeremyjone
Copy link

I had a similar error. Try installing react-native-root-siblings@^4.0.0.

It worked for me~~~~~~

My env:
react-native@0.74.3
react-native-root-toast@3.6.0
expo@^51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants