Skip to content

Failed propType: Invalid props.style key fontSize supplied to Picker. #32

Description

@futhrevo

Getting warnings using InputPicker

<InputGroup label='Tracking' inset={16} backgroundColor='white'>
                        <InputPicker expanded={this.state.focusPicker}
                            value={this.state.tracking}
                            label='Idle tracking'
                            onToggleExpansion={() => {
                            this.setState({ focusPicker: !this.state.focusPicker })
                        }}>
                        <Picker
                            prompt='Select a Idle tracking'
                            style={{ width: 300 }}
                            selectedValue={this.state.tracking}
                            onValueChange={(lang) => this.setState({ tracking: lang })}>
                              <Picker.Item label='Aggressive' value='0' />
                              <Picker.Item label='Calm' value='1' />
                        </Picker>
                        </InputPicker>
                    </InputGroup>

Gives the following error in console

Bad object: {
  "padding": 0,
  "fontSize": 17,
  "width": 300
}
Valid keys: [
  "width",
  "height",
  "top",
.....
] Check the render method of `Picker`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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