Replace opacity console error with warning

Summary: This error message is remarkably aggressive relative to the severity of the issue, particularly since the pattern in question is used / necessary throughout the codebase. Animated ReactART components with set opacities trigger this error, and opacity coming from the style prop is not respected.

Reviewed By: sahrens

Differential Revision: D3177554

fb-gh-sync-id: 96061d5ff526177814996b28e4394e6649839582
fbshipit-source-id: 96061d5ff526177814996b28e4394e6649839582
This commit is contained in:
Angela Hess 2016-04-18 18:52:53 -07:00 committed by Facebook Github Bot 3
parent 978fa488ec
commit 64d5da7754
1 changed files with 1 additions and 1 deletions

View File

@ -1394,7 +1394,7 @@ function createAnimatedComponent(Component: any): any {
for (var key in ViewStylePropTypes) {
if (!Component.propTypes[key] && props[key] !== undefined) {
console.error(
console.warn(
'You are setting the style `{ ' + key + ': ... }` as a prop. You ' +
'should nest it in a style object. ' +
'E.g. `{ style: { ' + key + ': ... } }`'