NativeBase
NativeBase copied to clipboard
App first loads in light mode then switches theme based on colorMode manager
Description
When we add colorMode manager to persist the color mode in async storage then at first load app is using light colormode and after sometime it switches to colormode from storage
CodeSandbox/Snack link
https://snack.expo.dev/@saurabh772244/nativebase-issue
Steps to reproduce
- Go to 'above mentioned snack'
- Click on 'launch app'
- Check console
- See first app is loaded in light mode then it switches to dark
NativeBase Version
3.4.28
Platform
- [ ] Android
- [ ] CRA
- [X] Expo
- [ ] iOS
- [ ] Next
Other Platform
No response
Additional Information
No response
Edit: I tried by setting initialColorMode in config but if we set it to light it will flicker in dark mode. If we set to dark it will flicker in light mode