Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Creating a picker component  #916

@openqubit

Description

@openqubit

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?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions