rn插件化開發(fā)中,可能會遇到如下報錯:
RCTStatusBarManager module requires that the UIViewControllerBasedStatusBarAppearance key in the Info.plist is set to NO

異常報錯.png
報錯分析:
設置app的狀態(tài)欄樣式的使用使用了舊的方式,在info.plist里面設置了View controller-based status bar appearance為NO,默認為YES,一般式iOS6的時候使用這種方式,iOS7,8也兼容,但是到了iOS9就報了警告。
解決方案:
在info.plist中,add row添加View controller-based status bar appearance并設置為NO即可