支持 Fabric 组件(React Native stripe)。

huangapple go评论43阅读模式
英文:

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!

谢谢!

支持 Fabric 组件(React Native stripe)。

支持 Fabric 组件(React Native stripe)。

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!

支持 Fabric 组件(React Native stripe)。

https://github.com/stripe/stripe-react-native/issues/1275

答案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.

支持 Fabric 组件(React Native stripe)。

huangapple
  • 本文由 发表于 2023年5月17日 07:25:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76267685.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定