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
Warning when setting text style to contentStyle in RkButton #177
Comments
Hi @ksairi I've tried running your code, but not sure I'm using the same environment because for now we're working on new version of ui-kitten. Btw, I got no warning. |
Hi @artyorsh. I tried that and is working. I will submit the PR but I don't understand why the warning if the |
I'm getting the same warning on my project..
Can confirm that changing |
@ksairi, |
Replace the type of `contentStyle` from `ViewPropTypes.style` to `RkText.propTypes.style` to resolve the [issue#177](akveo#177)
Issue type
I'm submitting a ...
Issue description
Current behavior:
I'm getting a warning when I'm setting the style to RkButton. I'm setting color, fontSize and fontFamily to contentStyle which I think is correct and getting a warning of invalidad prop (color) but it will complain about the others if I comment the first one. The style is applied though!
This wasn't happening until I upgraded to the last version of the library.
Literal warning:
Warning: Failed prop type: Invalid props.contentStyle key
color
supplied toRkButton
.Expected behavior:
No warnings at all
Related code:
Other information:
I'm using the expo client for debugging.
OS, device, package version
The text was updated successfully, but these errors were encountered: