nachos-ui icon indicating copy to clipboard operation
nachos-ui copied to clipboard

Warining when set Input/Button style using StyleSheet object

Open sadika9 opened this issue 8 years ago • 3 comments

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

sadika9 avatar Feb 22 '17 02:02 sadika9

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

orozcojair avatar Mar 21 '17 07:03 orozcojair

Documentation says object, array LINK I agree that should accept an instance of StyleSheet. If any maintainer agree I can make the changes

eduardomoroni avatar Aug 26 '17 12:08 eduardomoroni

@eduardomoroni Yes that change would be most welcome :)

mattapperson avatar May 01 '18 18:05 mattapperson