Nativebase: Piker in list/forms

Created on 15 Nov 2016  路  2Comments  路  Source: GeekyAnts/NativeBase

Look, the Piker, is a input, bat is determine a View. Well... That's is the code..

<ListItem>
    <InputGroup>
        <Picker
            inlineLabel
            iosHeader="Select number"
            label="Select number"
            mode="dropdown"
            selectedValue={this.state.num}
            onValueChange={num => this.setState({ num })}>
            <Item label='One' value={1} />
            <Item label='Two' value={2} />
            <Item label='Thre' value={3} />
        </Picker>
    </InputGroup>
</ListItem>

And not show the piker. Is resolve.. This in line

if(child && ( child.type == InputGroup || child.type == Picker ) )

Most helpful comment

I still don't know how to properly render a Picker with a Label. What's InputGroup? Why isn't it documented? :(

All 2 comments

@alejonext Take a look at Form of NativeBase-KitchenSink

Similar to your use case

I still don't know how to properly render a Picker with a Label. What's InputGroup? Why isn't it documented? :(

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Cotel picture Cotel  路  3Comments

Landerson352 picture Landerson352  路  3Comments

aloifolia picture aloifolia  路  3Comments

bsiddiqui picture bsiddiqui  路  3Comments

natashache picture natashache  路  3Comments