您需要在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>