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.

Toast not open on iOS with RN 0.63.3

See original GitHub issue

Good morning, i call the code bellow, but not open.

Toast.show({ text1: 'Hello', text2: 'This is some something 👋' });

Any idea?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
calintamascommented, Jan 30, 2021

@cristiano-linvix try adding it inside the NavigationContainer

return (
    <EmitenteContext.Provider
      value={{ data: EmitenteContextState, setData: setEmitenteContextState }}>
      <UsuarioContext.Provider
        value={{ data: UsuarioContextState, setData: setUsuarioContextState }}>
        <NavigationContainer>
          <StatusBar
            barStyle='dark-content'
            backgroundColor={CONSTS.ANDROID_STATUSBAR_COLOR}
          />
          <MainNavigator />
          <Toast ref={(ref) => Toast.setRef(ref)} topOffset={50} />
        </NavigationContainer>
      </UsuarioContext.Provider>
    </EmitenteContext.Provider>
  );
0reactions
cristiano-linvixcommented, Feb 1, 2021

Amazing! Thank you very much!! Working perfectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toast does not close on button press · Issue #3261 - GitHub
It started occurring after upgrading to RN 0.62.2 and seems to be related to the Toast swipe functionality. It also exists with RN...
Read more >
nativescript-toast not showing on iOS - Stack Overflow
I was facing various compatibility issues with nativescript-toast plugin on latest SDK. The easiest way seem to be switching to ...
Read more >
'RCTLog.h' file not found & Us… | Apple Developer Forums
The technical issue is as follows: it seems to be appearing in the RNBranchConfig.m file within the react-native-branch package for iOS specifically in...
Read more >
Light and dark modes - Expo Documentation
Learn how to support light and dark modes in your app.
Read more >
A React Native component to view a modal on iOS Device
A React Native component to display a modal on an iOS device by natively wrapping & presenting a React Native view within a...
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