Nativebase: RCTStatusBarManager module requires that the UIViewControllerBasedStatusBarAppearance key in the Info.plist is set to NO

Created on 5 Feb 2018  路  4Comments  路  Source: GeekyAnts/NativeBase

hello!
when in info.plist View controller-based status bar appearance - YES, this is error
"native-base": "2.3.5",
"react-native": "0.49.5",

constructor(props) {
this.state = {
city: [
{
text: 'number 1',
id: 0,
},
{
text: 'number 2',
id: 1,
},
]
}
}
<Item stackedLabel>
                                <Label>{I18n.t('ObayInputIndexCity')}</Label>
                                <Picker
                                textStyle={{fontSize: 14, textAlign: 'center'}}
                                   iosHeader={I18n.t('ObayInputIndexCity')}
                                   headerBackButtonText = {I18n.t('back')}
                                   mode="dropdown"
                                   selectedValue={this.state.city}
                                   onValueChange={(city) => {
                                     this.setState({city: city});
                                   }}
                                   style={{ width: Platform.OS === "ios" ? '90%' : '90%' }}
                                  >
                                  {this.props.city.map((item, index)=>(
                                    <Picker.Item key={index} label={item.text} value={item.id}/>
                                  ))}
                               </Picker>
                              </Item>

Most helpful comment

UIViewControllerBasedStatusBarAppearance needs to be false.

All 4 comments

UIViewControllerBasedStatusBarAppearance needs to be false.

I need to make info.plist true

thank you! close team!

Was this page helpful?
0 / 5 - 0 ratings