#Jainish
1 messages ยท Page 1 of 1 (latest)
Hi there!
Hey
Can you clarify what you tried and the documentation link you checked?
sure
here is the link for dochttps://www.npmjs.com/package/@stripe/stripe-react-native/v/0.19.0
I have tried configure Martial component theme according to Doc. but I got errors after adding styles for in styles.xml file. I am not aware with android native code.
here is the error screen
And can you share your code that is throwing that error.
this is the style code I have added
<!-- Stripe Screen theme -->
<style name="SrtipeTheme" parent="Theme.MaterialComponents.DayNight">
<!-- Original AppCompat attributes. -->
<item name="colorPrimaryDark">@color/status_bar_color</item>
<!-- <item name="colorPrimaryDark">@color/my_app_primary_dark</item>
<item name="colorSecondary">@color/my_app_secondary</item>
<item name="android:colorBackground">@color/my_app_background</item>
<item name="colorError">@color/my_app_error</item> -->
</style>
this is cardform code
<CardForm
onFormComplete={(cardDetails) => {
console.log('card details', cardDetails);
// setCard(cardDetails);
}}
style={{ height: 200 }}
/>
I found a similar issue on StackOverflow here: https://stackoverflow.com/questions/53476115/error-illegalargumentexception-the-style-on-this-component-requires-your-app
Can you try some of the solutions mentioned there?
sure let me check
Thanks a lot man. you really saved my day. cheers ๐ค๐ฅ
Happy to help ๐