We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e41a9f8 commit 504ffe2Copy full SHA for 504ffe2
components/AnimatedRegion.js
@@ -2,7 +2,9 @@
2
import {Animated} from 'react-native';
3
4
const AnimatedWithChildren = Object.getPrototypeOf(Animated.ValueXY);
5
-if (AnimatedWithChildren.name !== 'AnimatedWithChildren') console.error('AnimatedRegion could not obtain AnimatedWithChildren base class');
+if (__DEV__) {
6
+ if (AnimatedWithChildren.name !== 'AnimatedWithChildren') console.error('AnimatedRegion could not obtain AnimatedWithChildren base class');
7
+}
8
// const __Animated = Object.getPrototypeOf(AnimatedWithChildren);
9
// if (__Animated.name !== 'Animated') console.error('AnimatedRegion could not obtain Animated base class');
10
0 commit comments