stripe cardForm 在本机反应中不起作用

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

enter image description here我正在集成条纹支付网关想使用 cardForm 但面临问题

期待cardForm

reactjs react-native payment strip card
2个回答
0
投票

将此添加到构建/应用程序中。

实现'com.google.android.material:material:1.5.0'


0
投票

您需要在style.xml 文件中添加设置主题,cardForm 需要材料,所以您需要安装它。但是这个设置会改变主题的一些东西。

<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
     <item name="android:colorAccent">#000000</item>
    <item name="android:forceDarkAllowed">false</item>
    <item name="android:textColor">#000000</item>
</style>
© www.soinside.com 2019 - 2024. All rights reserved.