You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 31 warnings showing for react-native-reanimated/lib/module/index.web.js file not exported correctly. This issue has been consistently overlooked. The exporting is not done properly with react-native-reanimated/lib/module/index.web.js.
WARNING in ./node_modules/@react-navigation/drawer/lib/module/views/legacy/Overlay.js:26
export 'default'.'interpolateNode' (imported as 'Animated') was not found in 'react-native-reanimated' (possible exports: FlatList, Image, ScrollView, Text, View, addWhitelistedNativeProps, addWhitelistedUIProps, createAnimatedComponent)
24 | import Animated from 'react-native-reanimated';
25 | var interpolateDeprecated = Animated.interpolate,
> 26 | interpolateNode = Animated.interpolateNode,
27 | cond = Animated.cond,
28 | greaterThan = Animated.greaterThan;
29 | var interpolate = interpolateNode != null ? interpolateNode : interpolateDeprecated;
WARNING in ./node_modules/@react-navigation/drawer/lib/module/views/legacy/Overlay.js:27
export 'default'.'cond' (imported as 'Animated') was not found in 'react-native-reanimated' (possible exports: FlatList, Image, ScrollView, Text, View, addWhitelistedNativeProps, addWhitelistedUIProps, createAnimatedComponent)
25 | var interpolateDeprecated = Animated.interpolate,
26 | interpolateNode = Animated.interpolateNode,
> 27 | cond = Animated.cond,
28 | greaterThan = Animated.greaterThan;
29 | var interpolate = interpolateNode != null ? interpolateNode : interpolateDeprecated;
30 | var PROGRESS_EPSILON = 0.05;
WARNING in ./node_modules/@react-navigation/drawer/lib/module/views/legacy/Overlay.js:28
export 'default'.'greaterThan' (imported as 'Animated') was not found in 'react-native-reanimated' (possible exports: FlatList, Image, ScrollView, Text, View, addWhitelistedNativeProps, addWhitelistedUIProps, createAnimatedComponent)
26 | interpolateNode = Animated.interpolateNode,
27 | cond = Animated.cond,
> 28 | greaterThan = Animated.greaterThan;
29 | var interpolate = interpolateNode != null ? interpolateNode : interpolateDeprecated;
30 | var PROGRESS_EPSILON = 0.05;
31 | var Overlay = React.forwardRef(function Overlay(_ref, ref) {
web compiled with 33 warnings
Here is patch that fixes it:
diff --git a/node_modules/react-native-reanimated/lib/module/index.web.js b/node_modules/react-native-reanimated/lib/module/index.web.js
index bba2514..2d6671c 100644
--- a/node_modules/react-native-reanimated/lib/module/index.web.js+++ b/node_modules/react-native-reanimated/lib/module/index.web.js@@ -1,5 +1,8 @@
'use strict';
export * from './reanimated2';
-export * as default from './Animated'; // If this line fails, you probably forgot some installation steps. Check out the installation guide here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started#installation 1) Make sure reanimated's babel plugin is installed in your babel.config.js (you should have 'react-native-reanimated/plugin' listed there - also see the above link for details) 2) Make sure you reset build cache after updating the config, run: yarn start --reset-cache+// export * as default from './Animated'; // If this line fails, you probably forgot some installation steps. Check out the installation guide here: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started#installation 1) Make sure reanimated's babel plugin is installed in your babel.config.js (you should have 'react-native-reanimated/plugin' listed there - also see the above link for details) 2) Make sure you reset build cache after updating the config, run: yarn start --reset-cache+import * as _default from './Animated';+export default _default;
//# sourceMappingURL=index.web.js.map
+
Description
There are 31 warnings showing for react-native-reanimated/lib/module/index.web.js file not exported correctly. This issue has been consistently overlooked. The exporting is not done properly with react-native-reanimated/lib/module/index.web.js.
Here is patch that fixes it:
Steps to reproduce
Install fresh 3.10.0 then run expo web.
Snack or a link to a repository
https://snack.expo.io/
Reanimated version
3.10.0
React Native version
0.72.8
Platforms
Web
JavaScript runtime
Hermes
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: