React Native IOS 应用程序在使用导航时崩溃

问题描述 投票:0回答:1

我正在使用

react-native-reanimated
3.4.2

react-native
0.72.3

因此,当我使用navigation.reset或navigation.replace时,iOS反应本机应用程序崩溃而没有提供任何信息 但如果您使用 Xcode 运行您的应用程序,您将能够看到

 _clearAnimationConfigForTag

由于重新启动了最新的库而崩溃了

reactjs react-native react-navigation react-native-reanimated
1个回答
0
投票

所以目前当前存在一个错误

react-native-reanimated: 3.4.2

以下是讨论链接:https://github.com/software-mansion/react-native-reanimated/issues/4836

解决方案是暂时下载官方补丁版本,直到错误修复

3.5.0
现在您可以使用这个版本
react-native-reanimated@nightly

注意:从项目中删除

react-native-reanimated

如果您正在使用

yarn

yarn add react-native-reanimated@nightly

这将解决崩溃问题

© www.soinside.com 2019 - 2024. All rights reserved.