question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: null is not an object (evaluating 'this.toastInstance._root.showToast')

See original GitHub issue

Using “native-base”: “^2.3.3”

My App:

const Client = () => (
  <ApolloProvider client={client}>
    <I18nextProvider i18n={i18next}>
      <Root>
        <App />
      </Root>
    </I18nextProvider>
  </ApolloProvider>
);
export default Client;

Using android. The case happens when a i started my app, click in back button until minimize the app, then open app, after this, happens the error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:30 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
grahammccullochcommented, Mar 27, 2019

Ok - I’m getting this same error with native-base v2.12.1 and I do have <Root> as my top-level component (@roadev fyi my <Root> is wrapping my redux <Provider> component).

Happens both on Android and iOS devices.

12reactions
SupriyaKalghatgicommented, Jun 8, 2018

Fixed with 2.5.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: null is not an object (evaluating 'this.toastInstance ...
First ensure that you have wrapped your App Root(a.k.a Your Final UI component) in NativeBase's Root component as shown below: import 'react- ...
Read more >
Null Is Not An Object (Evaluating 'This.Toastinstance._Root ...)
Ask questionsTypeError: null is not an object evaluating 'this.toastInstance.root.showToast'. Using nativebase: 2.3.3. My App: const Client > button until ...
Read more >
[Solved]-How to fix nativebase toast error undefined is not an ...
Coding example for the question How to fix nativebase toast error undefined is not an object (evaluating 'this.toastInstance._root')-React Native.
Read more >
typeerror: null is not an object (evaluating 'response ... - You.com
hey guys i'm somewhat new to Ajax but my code is throwing up this error: TypeError: 'null' is not an object (evaluating 'response.productType')...
Read more >
How To Fix TypeError null is not an object (evaluating ...
React Native Tutorial - This Video ShowsHow To Fix TypeError null is not an object ( evaluating 'dispatcher.useState) TypeError react native ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found