mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
[ReactNative] Revert D2134877
This commit is contained in:
@@ -43,12 +43,6 @@ function flattenStyle(style: ?StyleObj): ?Object {
|
||||
|
||||
if (__DEV__) {
|
||||
var value = computedStyle[key];
|
||||
invariant(
|
||||
!value || typeof value !== 'object' || !value.getValue,
|
||||
'You passed an Animated.Value to a normal component. ' +
|
||||
'You need to wrap that component in an Animated. For example, ' +
|
||||
'replace <View /> by <Animated.View />.'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user