NativeBase
NativeBase copied to clipboard
Modal does not work in React Strict Mode
Description
When using React StrictMode, Modals never appear
CodeSandbox/Snack link
N/A
Steps to reproduce
- Go to '...'
- Click on '...'
- Scroll down to '...'
- See error
NativeBase Version
3.4.0
Platform
- [ ] Android
- [X] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next
Other Platform
No response
Additional Information
No response
Thanks for reporting @ziad-floosi. We will check this from our end and will update you.
I had the same problem, waiting for awsers. Thanks!
I had this problem too, when I use strict mode it doesn't working on local but it works when I publish my website to server
Having the same issue, though I will add it is not just modals but also toasts and the Menu component. After looking quickly through the Native Base source code, it looks like all three components use the Overlay component from @react-native-area/overlay.
We have temporarily fixed this by removing React.StrictMode but we would like to get it back.
Thanks for your hard work!