stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

CardField/CardForm inside of the FlatList error

Open arekkubaczkowski opened this issue 3 years ago • 3 comments

Making a payments using <CardField /> or <CardForm/ > components doesn't work while being rendered inside of the <FlatList /> component.

Steps to reproduce the behavior:

  1. Render a CardField component on the payment screen inside of the FlatList
  2. Call any payment method e.g. confirmPayment(), createPaymentMethod() etc.
  3. error is being returned with the Card details not complete error message

it seems like FlatList introduces certain issue with communication between the native modules.

Smartphone (please complete the following information):

  • Device: Android emulator/Real device
  • OS: Android

related issue: #624

arekkubaczkowski avatar Oct 06 '21 11:10 arekkubaczkowski

@arekkubaczkowski how to force android to work??

AlexSirenko avatar Oct 23 '21 18:10 AlexSirenko

@arekkubaczkowski how to force android to work??

Removing the CardField from inside the FlatList.

anija avatar Oct 26 '21 10:10 anija

@arekkubaczkowski @anija is there ability to style cardform on android (maybe via styles file)? So I will be able to set text colot, color of hints, of errors etc

AlexSirenko avatar Oct 26 '21 16:10 AlexSirenko