How to force disable iOS dark mode in React Native
In your app.json file add:
{
"expo": {
...
"ios": {
"infoPlist": {
"UIUserInterfaceStyle": "Light"
}
},
}
The solution is to either
- add this to your Info.plist file:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
OR
- Add this to your
AppDelegate.m
:
if (@available(iOS 13.0, *)) {
rootView.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
}