Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardForm crashing on android devices #1787

Open
codesbyhusnain opened this issue Dec 5, 2024 · 1 comment
Open

CardForm crashing on android devices #1787

codesbyhusnain opened this issue Dec 5, 2024 · 1 comment

Comments

@codesbyhusnain
Copy link

Describe the bug
I am using the CardForm component from @stripe/stripe-react-native to add payment methods to my users. The app is made on Expo. This page is working fine on the Expo Go app for both ios and android. It also works fine for ios builds but when I open this screen on my android device, it just shows me a white screen and gets stuck there.

To Reproduce
Steps to reproduce the behavior:

  1. Import the CardForm component in any page
  2. Take out an apk for the android
  3. Open that screen on your android device

Expected behavior
The screen should be rendered like it does on Expo Go and ios builds

Screenshots
Current output
1733431561675

Expected Output:
IMG_934830DE66FA-1

Smartphone (please complete the following information):

  • Redmi 13
  • HyperOS
@shoaibarif244
Copy link

update your android/app/src/main/res/values/styles.xml

Form
<resources> <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> </style> </resources>
To
<resources> <style name="AppTheme" parent="Theme.Material3.Light.NoActionBar"> <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> <item name="colorPrimaryDark">#1f1b31</item> </style> </resources>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants