我正在研究Next.js和React-Native-Web。我设法按照官方的Next.js示例将它们一起运行,但是当我试图使用react-native中的Animated包时,它以Error that the requestAnimationFrame 并没有定义。基本上这个功能是做node_modules包的,但是我在webpack中设置了别名,把所有的功能都翻译成了 原生反应 的要求。react-native-web 所以即使是node_modules包也应该使用react-native-web。
有什么建议可以解决吗?
ReferenceError: requestAnimationFrame is not defined
at start (...node_modules\react-native-web\
dist\cjs\vendor\react-native\Animated\animations\TimingAnimation.js:104:11)
enter code here
谢谢你的帮助