2

我试图使用'@react-navigation/top-tabs',但它依赖于 reanimated 2 我安装了 reanimated 2 但仍然得到相同的警告:

If you want to use Reanimated 2 then go through our installation steps https://docs.swmansion.com/react-native-reanimated/docs/installation

1-可以通过以下方式忽略警告:

.ignoreLogs(['Reanimated 2']);

2-如果你有任何其他想法,请帮助我

谢谢你

4

3 回答 3

2

最后我通过安装react-native-reanimated@alpha解决了这个问题,不要使用react-native-reanimated@next

于 2022-01-27T02:46:05.187 回答
1

安装后您可能会收到与对等依赖项相关的警告。它们通常是由某些包中指定的不正确的版本范围引起的。只要您的应用程序构建,您就可以放心地忽略大多数警告。

于 2021-10-09T22:41:25.407 回答
1

请尝试react-native-reanimated@alpha

于 2022-01-27T02:48:07.173 回答