`label` prop doesn't accept an object type.
Closed this issue · 10 comments
Hello,
We are using your component in our project, but need to style the label to match our design.
We did the following:
label={isIOS && selectedOption ? <Text style={styles.iosLabel}>{selectedOption.label}</Text> : ''}
but it requires to extend the propType validation to:
label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
to avoid a console error.
Same thing needs to be done for readt-native-togglebox
.
Thanks!
Makes sense to me! Would you like to submit a pull request?
Sure thing! I wasn't able to push my local branch remotely, probably need to enable some settings in your repos?
I just posted both PRs, thx!
Hey, was just wondering if you had some time to review the PRs? Thx!
Closed by #5
Thank you!
I think you need to update the react-native-togglebox
dependency to 1.0.3
?
https://github.com/ThePaulMcBride/react-native-smart-picker/blob/master/package.json#L22
👍 I'll do this now. I'm an idiot!
😉 Thanks!