I have some card items and i would like to add a picker component that i can use to have select box
<CardItem>
<Item floatingLabel>
<Label>Airtime Amount</Label>
<Picker selectedValue={this.state.language} onValueChange={(lang) => this.setState({language: lang})}> <Picker.Item label="Java" value="java" /> <Picker.Item label="JavaScript" value="js" /></Picker>
</Item>
</CardItem>
I have this is in the constructor
constructor(props) {
super();
this.state = {
language: 'Qt',
}
}
The code does not display the picker but instead displays a text input box.
How can i have the picker working?.
I have some card items and i would like to add a picker component that i can use to have select box
I have this is in the constructor
The code does not display the picker but instead displays a text input box.
How can i have the picker working?.