Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
futhrevo opened this issue Jul 22, 2016 · 3 comments
Open

Comments

@futhrevo
Copy link

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`.
@bmcmahen
Copy link
Collaborator

Thanks for the report. Which panza version, and which OS?

@futhrevo
Copy link
Author

This is OS X 10.11.6 and npm versions are
"panza": "^2.3.0",
"react": "^15.1.0",
"react-native": "^0.28.0",

@jackuhan
Copy link

use xxxStyle: Text.propTypes.style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants