react-native-root-toast icon indicating copy to clipboard operation
react-native-root-toast copied to clipboard

toast doesn't show in RN60

Open sajjadintel opened this issue 4 years ago • 22 comments

Hi, toast doesn't show in RN60 i have no idea why, and there is no log in console. please help me. thanks.

sajjadintel avatar Sep 30 '19 18:09 sajjadintel

Works for me in RN0.60 as well in RN0.61

nathantaal avatar Oct 01 '19 08:10 nathantaal

but it doesn't show for me how can i investigate what's wrong?

sajjadintel avatar Oct 01 '19 09:10 sajjadintel

Not showing up in RN0.61.1

4sagar avatar Oct 09 '19 08:10 4sagar

@sajadabasi In my case, I was debugging on a live device. And after react-native run-android, it worked.

4sagar avatar Oct 09 '19 08:10 4sagar

RN0.60.5 也显示不出来

moselon avatar Oct 18 '19 05:10 moselon

I am facing the same issue. Already updated to the latest version and it persists. Any tips on how to fix it?

SandroMachado avatar Nov 10 '19 00:11 SandroMachado

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?

LuisRego avatar Nov 11 '19 16:11 LuisRego

Same problem here, RN 0.60.

Randyhuls avatar Nov 16 '19 14:11 Randyhuls

same issue with me in 0.59.10 .. it was working earlier but not working now

asifalikhokhar avatar Nov 26 '19 11:11 asifalikhokhar

exactly it's not working in 0.61.x in iOS. Any idea?

tientruongvan1995 avatar Nov 27 '19 02:11 tientruongvan1995

import 'react-native-root-siblings'

Insert this line to index.js of top of project. then it worked correctly

x86kernel avatar Dec 04 '19 06:12 x86kernel

import 'react-native-root-siblings' I have insert this to my index.js but still not work

shadow-boy avatar Dec 05 '19 09:12 shadow-boy

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"

shadow-boy avatar Dec 06 '19 01:12 shadow-boy

react-native version 0.61.4, toast not display

casey1991 avatar Dec 17 '19 06:12 casey1991

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 ..

asifalikhokhar avatar Dec 23 '19 11:12 asifalikhokhar

Hi @asifalikhokhar , can you explain what did you do exactly? thanks

sajjadintel avatar Dec 23 '19 11:12 sajjadintel

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

glowwormyc avatar Dec 24 '19 02:12 glowwormyc

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

devstarman avatar Jan 03 '20 17:01 devstarman

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.

glowwormyc avatar Jan 06 '20 08:01 glowwormyc

you can use https://github.com/shx996/react-native-tiny-toast instead. it has almost the same functionality

SamimSdz avatar Apr 09 '20 09:04 SamimSdz

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)

harsh-bacancy avatar Oct 07 '20 13:10 harsh-bacancy

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

cauyyl avatar Sep 08 '21 07:09 cauyyl