gpt4 book ai didi

React native expo app crashes on android when using lottie-react-native (2.6.1), but works on ios(当使用Lottie-Reaction-Native(2.6.1)时,Reaction原生博览会应用程序在Android上崩溃,但在iOS上运行)

转载 作者:bug小助手 更新时间:2023-10-26 21:02:31 29 4
gpt4 key购买 nike



I've been stuck on this problem for about 3 days, tried almost everything. What I learn't through this process is that AndroidX support in lottie-react-native came after version 3. The Expo cli doesn't allow to run the app with the latest version of lottie. It restricts me to version 2.6.1 which is why my app crashes on expo android client, while it works for ios.

我已经在这个问题上纠结了大约3天,几乎尝试了所有的方法。我在这个过程中没有学到的是,在Lottie-Reaction-Native中对Android的支持是在版本3之后。EXPO CLI不允许在最新版本的Lottie上运行该应用程序。它将我的应用程序限制在2.6.1版本,这就是为什么我的应用程序在Expo Android客户端崩溃,而它在iOS上可以工作。



Is there anyway I could get through this problem without migrating to react-native-cli?

有没有什么办法可以让我不用迁移到REPACTIVE-NERNAL-CLI来解决这个问题?


更多回答
优秀答案推荐

You should try converting your lottie JSON to old version. I gave 2 reference link below how to do it. I tried and it worked. I haven't checked yet and i don't know which version of cli that you use, but if you use earlier version of cli, you can check latest version. Maybe it allows you to use latest version of lottie-react-native.

您应该尝试将您的Lottie JSON转换为旧版本。我在下面给出了2个如何做的参考链接。我试过了,它奏效了。我还没有检查过,我不知道你使用的是哪个版本的CLI,但如果你使用较早版本的CLI,你可以检查最新的版本。也许它允许您使用最新版本的Lottie-Reaction-Native。



Ref1: https://github.com/react-native-community/lottie-react-native/issues/478#issuecomment-493946863

参考1:https://github.com/react-native-community/lottie-react-native/issues/478#issuecomment-493946863



Ref2: https://github.com/expo/expo/issues/4835#issuecomment-508932818

参考文献2:https://github.com/expo/expo/issues/4835#issuecomment-508932818


更多回答

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com