Statusbar error after sdk 40 update update

Please provide the following:

  1. SDK Version:40
  2. Platform:ios

I use Expo Managed workflow. I got this error after sdk40 update;

if you want to change the appearance of the status bar you have to change UIViewControllerBasedStatusBarAppearance key in the info.plist to YES

I use react navigation 5 with react native screens. Any help would ne appreciated.

are you trying to set the status bar color through react-navigation?

I didnt change the bar color through react-navigation. I figured out the problem. I set <StatusBar hidden /> on App.tsx file, also react-native-screens stack options setStatatusBarHidden:true. I removed setStatusBarHidden:true error disappeared. It wasnt a problem for sdk 39. Somehow it causes conflict in sdk 40.

Thank you

i see, so you were manipulating the status bar through react-native-screens. indeed that requires setting uiviewcontroller based status bar, which is not enabled in the managed workflow.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.