question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Failed propType: Invalid props.style key 'color' supplied to [ 'View' | 'RCTView' ]

See original GitHub issue

Original issue submitted here… https://github.com/start-react/native-starter-kit/issues/10

I’m using native-starter-kit, which uses native-base. In both iOS and Android simulators, I’m receiving these warnings after clicking “Login”

iOS

Android

I believe the error is occurring in /native-base/Components/Widgets/Button.js, but I haven’t been able to locate it yet.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
jackuhancommented, Mar 29, 2017

use xxxStyle: Text.propTypes.style

6reactions
moshebeericommented, Feb 23, 2017

This issue is so annoying, not because NativeBase has something to do with this issue, but since it is the same company whom I payed 100$ for a start kit which has not compatible with the open source written by company, causing this issue. Why the hack I payed you guys? to read this F**n post and to get stack with the warnings?? I expect that the NativeBase Commercial and NativeBase Social that cost me 200$ will work with the latest NativeBase out of the box! I do not recommend any one to buy the kits from NativeBase until they will fix those issue!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed propType: Invalid props.style key 'color' supplied to ...
You already set backgroundColor which is supported property by View component so simply removing this: color: "white".
Read more >
Failed propType: Invalid props.style key 'color ... - GitHub
Warning : Failed propType: Invalid props.style key 'color' supplied to [ 'View' | 'RCTView' ] I used color property in react native app...
Read more >
Invalid props.style key 'textAlign' supplied to 'View'-Reactjs
Coding example for the question Failed prop type: Invalid props.style key 'textAlign' supplied to 'View'-Reactjs.
Read more >
Invalid Prop Types: Prop.Style Key Fontsize Supplied To View
React router error Failed prop type: Invalid prop children supplied to Switch Invalid props.style key 'color' supplied to [ 'View' | 'RCTView' ]....
Read more >
A brand new website interface for an even better experience!
Warning : Failed prop type: Invalid props.style key `color` supplied to `Icon`.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found