Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

PropTypes Validation #13

Open
ShiiRochi opened this issue Jul 9, 2017 · 0 comments
Open

PropTypes Validation #13

ShiiRochi opened this issue Jul 9, 2017 · 0 comments

Comments

@ShiiRochi
Copy link

ShiiRochi commented Jul 9, 2017

I created stylysheet with StyleSheet.create({...}), and send part of it to PhoneInput, however everytime while running the application I'm facing the following messages:

Invalid prop flagStyle of type number supplied to PhoneInput, expected object

Code is the following:
<PhoneInput textStyle={styles.phoneInputText} flagStyle={styles.phoneInputFlag} ref="phoneInput" onChangePhoneNumber={(phoneNumber)=>{this.onPhoneFieldChange(phoneNumber, this.refs.phoneInput.isValidNumber());}}/>
As you can see I'm sending style.phoneInputFlag, that is equal to:
phoneInputFlag:{ width:65, height:50, borderWidth:0 }

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

No branches or pull requests

1 participant