forked from d-a-n/react-native-modal-picker
-
Notifications
You must be signed in to change notification settings - Fork 130
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
selectTextStyle has wrong propTypes #25
Comments
Hi @mienaikoe |
hey @peacechen I think I'll do a PR |
Merged. Thanks the the PR 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you set
textAlign
orcolor
on the selectTextStyle prop, you get a warning:Failed prop type: Invalid props.selectTextStyle key 'color' supplied to 'ModalSelector'.
I looked into the source code, and found that index.js:29 has this:
selectTextStyle: ViewPropTypes.style,
should be:
selectTextStyle: Text.propTypes.style
I'll put in a pull request for it if this looks like a valid bug to you
The text was updated successfully, but these errors were encountered: