英文:
Support Fabric components (React Native stripe)
问题
I'm using RN 0.71.4 and when I'm trying to add stripe element like CardField
I am facing below issue that is not Fabric compatible yet.
我正在使用RN 0.71.4,当我尝试添加像 CardField
这样的 Stripe 元素时,我遇到了尚未与 Fabric 兼容的问题。
I tried to turn off newArchEnabled
like comments on Github, but it also raise another compile errors.
我尝试像 GitHub 上的评论一样关闭 newArchEnabled
,但这也引发了另一个编译错误。
Are there any solutions to use another element or library? I need to use stripe element and wondering how can I solve it using another module or configuration.
是否有使用其他元素或库的解决方案?我需要使用 Stripe 元素,想知道如何使用其他模块或配置来解决它。
Thanks!
谢谢!
https://github.com/stripe/stripe-react-native/issues/1275
https://github.com/stripe/stripe-react-native/issues/1275
英文:
I'm using RN 0.71.4 and when I'm trying to add stripe element like CardField
I am facing below issue that is not Fabric compatible yet.
I tried to turn off newArchEnabled
like comments on Github, but it also raise another compile errors.
Are there any solutions to use another element or library? I need to use stripe element ans wondering how can I solve it using another module or configuration.
Thanks!
答案1
得分: 1
以下是您要翻译的内容:
根据Github问题中的评论,新的架构尚未得到支持。唯一的前进途径是关闭新架构,并解决您遇到的“其他编译错误”。Stripe RN SDK在使用此架构之前已经在工作,所以这是正确的方向。
英文:
As comments on the Github issue the new architecture hasn't been supported yet. The only path forward is turning off the new architecture, and resolve the "other compiling error" you have. Stripe RN SDK has been working before this architecture so it's the correct direction to go.
答案2
得分: 0
I have managed this issue to be fixed by disabling newArchEnabled
.
android/gradle.properties:
# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
# -> this here ^^^^^
- clean gradle and rebuild app.
英文:
I have managed this issue to be fixed by disabling newArchEnabled
.
android/gradle.properties:
# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
# -> this here ^^^^^
- clean gradle and rebuild app.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论