ReactNative笔记ios developers

RN笔记-报错处理:RCTStatusBarManager mo

2017-03-07  本文已影响164人  金丝楠

rn插件化开发中,可能会遇到如下报错:

RCTStatusBarManager module requires that the UIViewControllerBasedStatusBarAppearance key in the Info.plist is set to NO
异常报错.png
报错分析:

设置app的状态栏样式的使用使用了旧的方式,在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即可

上一篇 下一篇

猜你喜欢

热点阅读