Skip to content

Picker children do not accept {false} #13317

@windhamwong

Description

@windhamwong

Problem:
When I try to implement dynamic item in <Picker>, the app returns

Cannot read property 'props' of null

I did some quick test (actually not quick to spot the issue...), it seems to be an issue when the children is false. This might be related to #12829

Prove of Concept (PoC):

I use {false} here to represent no data in the dynamic variable.

<View>{false}<View>

View is working fine with false here.

<Picker>{false}<Pick>

But picker do not allow you to put false here. You can put null here instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions