【问题标题】:After installin Reanimated 2 still get the warrning "If you want to use Reanimated 2 then..."安装 Reanimated 2 后仍会收到警告“如果您想使用 Reanimated 2 那么...”
【发布时间】:2021-09-26 05:49:05
【问题描述】:

我正在尝试使用“@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-如果你有任何其他想法,请帮助我

谢谢

【问题讨论】:

标签: javascript react-native react-navigation react-native-reanimated-v2 react-navigation-top-tabs


【解决方案1】:

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

【讨论】:

  • 如何接受这个答案。
  • 来自@Kelly 文档
猜你喜欢
  • 2023-01-29
  • 2023-02-11
  • 2021-12-29
  • 1970-01-01
  • 1970-01-01
  • 2021-07-11
  • 2021-09-29
  • 2022-01-18
  • 2022-11-17
相关资源
最近更新 更多