I get this error oftentimes when I try to submit a redux form and show a success toast.
react-native: 0.45.1
react: 16.0.0-alpha.12
native-base: 2.2.0
I expect a green toast message to show up briefly when the form submission is successful.
The form submits, but no toast message is displayed and this error shows in the console.
_onSubmitJobType = jobTypeId => {
const { jobId, showErrors, jobJobTypeSelect, } = this.props
return jobJobTypeSelect({
addProcesses: true,
jobId,
jobTypeId,
})
.then(() => {
Toast.show({
text: "Changed job type successfully!",
position: "bottom",
buttonText: "Okay",
type: "success",
duration: TOAST_VISIBLE_TIME,
})
})
.catch(error => {
devLog('_onSubmit error', error)
showErrors()
})
}

Only tested on ios.
This has been happening for a while now on earlier versions as well. I also made a stack overflow question about it earlier.
Exactly same problem here, with same versions but on Android...
Is your main app component wrapped in <Root>? I ran into this issue the other day and that solved it for me. See the docs: https://docs.nativebase.io/Components.html#Toast
Thanks @amhinson! That worked!
Most helpful comment
Is your main app component wrapped in
<Root>? I ran into this issue the other day and that solved it for me. See the docs: https://docs.nativebase.io/Components.html#Toast