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>
UIViewControllerBasedStatusBarAppearance needs to be false.
I need to make info.plist true
Not a native-base issue.
thank you! close team!
Most helpful comment
UIViewControllerBasedStatusBarAppearanceneeds to be false.