TypeError: null is not an object (evaluating 'Toast._ref.show')
See original GitHub issueI am getting this error when I am trying to prompt a message. I am using expo version 39.0.2 with the following packages. react: 16.13.1 react-native: 0.63 react-native-toast-message: 1.3.6
I am also using ui-kitten and redux. The component is placed inside the inner layer (redux).
My app root looks like this:
function App() {
return (
<RootLayout>
<Provider store={store}>
<AppNavigator />
<Toast ref={(ref) => Toast.setRef(ref)} />
</Provider>
</RootLayout>
);
}
export default () => {
return (
<>
<IconRegistry icons={EvaIconsPack} />
<ApplicationProvider
{...eva}
theme={{ ...eva.light, ...theme, ...themeExtra }}
>
<App />
</ApplicationProvider>
</>
);
};
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
null is not an object (evaluating 'this._ref.show') #89
After npm installing this library, the given code doesn't work. <Toast ref={Toast.setRef} />. and after initialisation calling Toast.show({ ...
Read more >null is not an object (evaluating 'this.toastInstance._root. ...
I am facing a Nativ Base Toast issue. When I first load application and then navigate to ticket status, if I go back...
Read more >typeerror: null is not an object (evaluating 'nativemodules ...
TypeError : null is not an object (evaluating 'NativeModules["SQLite"][method]') This error is located at: in ProfileScene (created by SceneView) in ...
Read more >null is not an object while accessing the Native Module-React ...
Coding example for the question typeError: null is not an object while accessing the Native Module-React Native.
Read more >react-native-toast-message
Toast message component for React Native. Latest version: 2.1.5 ... Start using react-native-toast-message in your project by running `npm i ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If someone gets the same error I fixed it by adding
<Toast>
to App.jsOk, glad it works! I’m closing this issue