In my app I use React Native (legacy code) and iOS native components.
Recently I implemented preferredStatusBarStyle override in my iOS ViewController.
But preferredStatusBarStyle doesn't work without View controller-based status bar appearance = YES in Info.plist. So I changed this key to YES.
Now I have a React Native error: "RCTStatusBarManager module requires that the UIViewControllerBasedStatusBarAppearance key in the Info.plist is set to NO".
Is there any way how to remove error without changing .plist back? I searched all legacy react code and didn't find any use of StatusBar React Component.