Open DoxasticFox opened 5 months ago
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
9.7.3
This error appears in the browser console when importing '@react-spring/native' in react native:
'@react-spring/native'
Uncaught Error: Dynamic require of "react-native" is not supported node_modules bundle.js:60559 node_modules bundle.js:60630 ...
npm install @react-spring/native
Add these lines to the generated App.tsx:
App.tsx
import { useSpring, animated } from '@react-spring/native'; // These ensure lazy loading doesn't prevent the import console.log(useSpring); console.log(animated);
npx expo start
w
Uncaught Error: Dynamic require of "react-native" is not supported
No error.
https://github.com/DoxasticFox/react-spring
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.3
What's Wrong?
This error appears in the browser console when importing
'@react-spring/native'
in react native:To Reproduce
npm install @react-spring/native
Add these lines to the generated
App.tsx
:npx expo start
and pressw
to open your browser.Uncaught Error: Dynamic require of "react-native" is not supported
.Expected Behaviour
No error.
Link to repo
https://github.com/DoxasticFox/react-spring