Nativebase: Toast not showing in latest react version

Created on 15 Jun 2018  路  7Comments  路  Source: GeekyAnts/NativeBase

react-native, react and native-base version

react-native : 0.55.4
react : 16.4.1
native-base : 2.5.2

Expected behaviour

Show Toast

Actual behaviour

Toast not showing and no errors showing in debugger

Steps to reproduce (code snippet or screenshot)

import {Button, Toast, Text} from 'native-base'

<Button danger onPress={() => Toast.show({ text: "Wrong password!", buttonText: "Okay", type: "danger" })} > <Text>Danger Toast</Text> </Button>

Any other additional info which would help us debug the issue quicker.

I wrapped the topmost component in Root. To check that, I used ActionSheet and it is working but Toast is not.

Most helpful comment

Thanks. The problem was with the debugger. I didnt know Toasts doesnt show when debugger is on

All 7 comments

Worked same on Android also
toast

Thanks. The problem was with the debugger. I didnt know Toasts doesnt show when debugger is on

Thanks @anbu369, I lost 2 days in this, you saved me!

hahaha .what the hell does debugger do ? I have already spent much time for previous file upload issue and now for this Toast too.

From my testing, it shows with the debuggers on, but 'eats' the first 3000 duration.

What do you mean @anbu369? Have you stoped the remote JS debugging?

disable remote JS debugging solve problem, I don't know why it need disable
@anbu369 thanks man, you saved me

Was this page helpful?
0 / 5 - 0 ratings