react-native-root-toast
react-native-root-toast copied to clipboard
toast doesn't show in RN60
Hi, toast doesn't show in RN60 i have no idea why, and there is no log in console. please help me. thanks.
Works for me in RN0.60 as well in RN0.61
but it doesn't show for me how can i investigate what's wrong?
Not showing up in RN0.61.1
@sajadabasi In my case, I was debugging on a live device. And after react-native run-android
, it worked.
RN0.60.5 也显示不出来
I am facing the same issue. Already updated to the latest version and it persists. Any tips on how to fix it?
I am facing the same issue. Already updated to the latest version and it persists. Any tips on how to fix it?
Same here with RN 0.61. Can someone explain how can I make it work on RN 0.61?
Same problem here, RN 0.60.
same issue with me in 0.59.10 .. it was working earlier but not working now
exactly it's not working in 0.61.x in iOS. Any idea?
import 'react-native-root-siblings'
Insert this line to index.js of top of project. then it worked correctly
import 'react-native-root-siblings' I have insert this to my index.js but still not work
I get it、My problem is "react-native-root-siblings":"^3.2.3"
but this component use the version "^3.2.0" this depend "react-native-root-siblings":"^4.0.0" ,
so if use the lastest verison "^3.2.0" some problem happened ,
finally i change the verison to "3.1.2"
react-native version 0.61.4, toast not display
I get it、My problem is "react-native-root-siblings":"^3.2.3" but this component use the version "^3.2.0" this depend "react-native-root-siblings":"^4.0.0" , so if use the lastest verison "^3.2.0" some problem happened , finally i change the verison to "3.1.2"
tried many solutions, nothing worked, this is the final thing I did and now it's working ..
Hi @asifalikhokhar , can you explain what did you do exactly? thanks
delete node_modules sub dir under this lib, then it's ok, toast now can show. my RN version is 0.59.5 and toast version is 3.0.2, siblings version is 3.1.7
If you use Expo and updated it to SDK36 it is known issue and was resolved in version 36.0.1 https://github.com/expo/expo/issues/6473#issuecomment-566356579
import 'react-native-root-siblings'
Insert this line to index.js of top of project. then it worked correctly
Great! It solves my problem. I am very sorry about previous post that i said delete internal dirs, ### it is wrong.
you can use https://github.com/shx996/react-native-tiny-toast
instead. it has almost the same functionality
import 'react-native-root-siblings'
Insert this line to index.js of top of project. then it worked correctly
Thanks. It worked for me.
I am using
"react-native-root-siblings":"^3.1.2" react-native v0.60
Just One more thing to note here::
import { RootSiblingParent } from 'react-native-root-siblings';
<RootSiblingParent>
<App />
</RootSiblingParent>
if you are wrapped the root component with RootSiblingParent , Remove it.. Also, remove the import line of that component.
You just need to keep
import 'react-native-root-siblings
the line on the root file (index.js / App.js)
import 'react-native-root-siblings' Insert this line to index.js of top of project. then it worked correctly
Thanks. It worked for me.
I am using
"react-native-root-siblings":"^3.1.2" react-native v0.60
Just One more thing to note here::
import { RootSiblingParent } from 'react-native-root-siblings'; <RootSiblingParent> <App /> </RootSiblingParent>
if you are wrapped the root component with RootSiblingParent , Remove it.. Also, remove the import line of that component.
You just need to keep
import 'react-native-root-siblings
the line on the root file (index.js / App.js)
RootSiblingParent works for me in RN 0.63.4