Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash on android when Toast.show() #519

Open
dstestdeveloper opened this issue Dec 19, 2023 · 1 comment
Open

crash on android when Toast.show() #519

dstestdeveloper opened this issue Dec 19, 2023 · 1 comment

Comments

@dstestdeveloper
Copy link

dstestdeveloper commented Dec 19, 2023

  <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen name="BottomTab" component={BottomTab} options={{headerShown: false}} />
        <Stack.Screen name="SearchScreen" component={SearchScreen} options={{headerShown: false}} />
        <Stack.Screen name="GenerateScreen" component={GenerateScreen} options={{headerShown: false}} />
        <Stack.Screen name="GeneratingScreen" component={GeneratingScreen} options={{headerShown: false}} />
        <Stack.Screen name="BookListsScreen" component={BookListsScreen} options={{headerShown: false}} />
        <Stack.Screen name="AuthorDetailScreen" component={AuthorDetailScreen} options={{headerShown: false}} />
        <Stack.Screen name="GeneratedScreen" component={GeneratedScreen} options={{headerShown: false}} />
      </Stack.Navigator>
      <Toast config={toastConfig} position="bottom" bottomOffset={100} />
    </NavigationContainer>

when i call Toast.show() on android, app crashed. but ios works well
i use react-native v0.72.7 & toast v2.2.0

@Nor01
Copy link

Nor01 commented Apr 16, 2024

Can you provide more information about errors in your console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants