nachos-ui
nachos-ui copied to clipboard
Warining when set Input/Button style using StyleSheet object
Get following waring message when try to set stlye of Input/Button componet using react native StyleSheet component
Warning: Failed prop type: Invalid prop`style` supplied to `Input`
I only tried on Input & Button components
I had the same issue just until about an hour ago but then I tried adding my classes as arrays like so:
<Button style={[Styles.button, Styles.registerButton]} textStyle={[Styles.registerText]} >Register</Button>
and now I have no more issues... I think it is misinformation in the docs more than a bug. If they remove the description of object it will be clear
Documentation says object, array LINK
I agree that should accept an instance of StyleSheet. If any maintainer agree I can make the changes
@eduardomoroni Yes that change would be most welcome :)