'why I get this error: Maximum call stack size exceeded
I use react native toast message.
https://github.com/calintamas/react-native-toast-message
It works but I got this error:
why I get this error: Maximum call stack size exceeded
App.tsx
return (
<Suspense fallback={<Text>Loading...</Text>}>
<Provider store={store}>
<NavigationContainer>
<Host>
<NativeStackWrapper />
<Toast position='bottom' ref={(ref) => Toast.setRef(ref)} />
</Host>
</NavigationContainer>
</Provider>
</Suspense>
);
Register.tsx
onSubmit: (val) => {
Toast.show({
type: 'success',
position: 'bottom',
text1: 'Du hast erfolgreich ein Account erstellt!',
text2: 'Du kannst nun ungestört unsere Platform nutzen.',
visibilityTime: 4000,
autoHide: true,
topOffset: 20,
bottomOffset: 40,
onShow: () => {},
onHide: () => Toast.hide(),
});
}
How can I solve this issue ? .......................................................................................................................
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
