NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Modal does not work in React Strict Mode

Open ziad-floosi opened this issue 2 years ago • 3 comments

Description

When using React StrictMode, Modals never appear

CodeSandbox/Snack link

N/A

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

NativeBase Version

3.4.0

Platform

  • [ ] Android
  • [X] CRA
  • [ ] Expo
  • [ ] iOS
  • [ ] Next

Other Platform

No response

Additional Information

No response

ziad-floosi avatar Aug 17 '22 01:08 ziad-floosi

Thanks for reporting @ziad-floosi. We will check this from our end and will update you.

AshwiniKumar007 avatar Aug 23 '22 11:08 AshwiniKumar007

I had the same problem, waiting for awsers. Thanks!

Alpacora avatar Sep 09 '22 18:09 Alpacora

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

uit2712 avatar Sep 13 '22 06:09 uit2712

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!

codaDevDan avatar Feb 03 '23 17:02 codaDevDan