question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Picker not display in Item component

See original GitHub issue

I cant display Picker component in Item.

<Container> <Content> <Item stackedLabel > <Label>Picker</Label> <Picker supportedOrientations={['portrait']} mode="dialog" selectedValue="choose" onValueChange={(item) => { }} > <Item label="Choose" value="choose" /> </Picker> </Item> </Content> </Container>

native-base : 2.1.5

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
xstablecommented, Jan 4, 2018

I use native-base 2.3.5, but Error seems to be still there… or is it my fault? Tried it with Picker.Item and only with Item. If I put the Picker into <Item>, it won’t be shown.

<Content>
                                <Form>
                                    <Item>
                                        <Label>Api</Label>
                                        <Picker
                                            placeholder="API choose"
                                            mode="dropdown"
                                            selectedValue={this.state.selectedApi}
                                            onValueChange={this.onValueChange.bind(this)}
                                            style={{margin:5, color: colors.darkText}}
                                        >
                                            <Picker.Item label="API choose" enabled={false} value="choose" />
                                            <Picker.Item label="one" value="one" />
                                            <Picker.Item label="two" value="two" />
                                            <Picker.Item label="three" value="three" />
                                        </Picker >
                                    </Item>

                                <Item stackedLabel>
                                    <Label stackedLabel>E-Mail</Label>
                                    <Input />
                                </Item>
                                <Item stackedLabel last>
                                    <Label>API-Key</Label>
                                    <Input />
                                </Item>
                                </Form>
                            </Content>
  "dependencies": {
    "@expo/vector-icons": "^6.2.2",
    "flow-bin": "^0.62.0",
    "native-base": "^2.3.5",
    "react": "16.0.0",
    "react-native": "0.51.0"
  },```

It even not work, If I copy your code from above... 
1reaction
shivrajkumarcommented, Jun 21, 2017

Ah! Yes, the issue seems to be with Item itself. The issue has been resolved. Will be released in the next release. For now you can remove Item wrapper around Picker and go ahead

Read more comments on GitHub >

github_iconTop Results From Across the Web

selectedValue in Picker not showing - react native
My problem is that the selectedValue in the Picker does not show on small screens! On big screens it works just fine, but...
Read more >
Solved: Combobox and Datepicker not displaying over panel
I am using the `combobox` and `input-date-picker` inside a panel. However the dropdown/popups don't display over the panel, they display ...
Read more >
DATE TIME PICKER DOES NOT DISPLAY WHEN ICON ... - IBM
The date time picker opens behind the inline work item editor when editing a work item on a Kanban Board that has not...
Read more >
HTMLInputElement.showPicker() - Web APIs | MDN
showPicker () method displays the browser picker for an input element. This is the same picker that would normally be displayed when the...
Read more >
Picker - Adobe Spectrum
Pickers have a read-only option for when content in the disabled state still needs to be shown. This allows for content to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found