#Thanhpham

1 messages · Page 1 of 1 (latest)

mint eagleBOT
wet plaza
#

Hi there, are you working on a react-native project? Can you share with me the relavant code?

worn mantle
#

I'm using react native expo

wet plaza
#

And are you running in Expo Go?

worn mantle
#

that right

#

What's the difference with the build version?

wet plaza
#

That's a possibility that the Expo Go runtime is using different version of underlying native Stripe SDK and that's why the behaviour is different

worn mantle
#

but why is it still different when it's built?

wet plaza
#

It's really up to what Stripe SDK that the Expo Go app is built with.

worn mantle
#

Above ios I have a field that is post code to enter, but android side does not have this input to enter

#

So can I set it to display on android or remove it from ios side?

wet plaza
#

You can try setting a postalCodeEnabled to enforce hiding/showing the postal code field

#
   postalCodeEnabled={false}
   onCardChange={(cardDetails) => {
   console.log('card details', cardDetails);
     setCard(cardDetails);
   }}
   style={{height: 50}}
 />```
worn mantle
#

Oh unfortunately I'm using the card form in @stripe/stripe-react-native, where it doesn't have the 'postalCodeEnabled' as you said

wet plaza
#

OK. For CardForm it will only display postal code when needed (i.e., if the country is US or UK)

worn mantle
#

but why on android and ios i put the same country but android doesn't show but ios does

wet plaza
#

Like I said earlier, the Expo Go app might use a old Stripe SDK that could behave differently.

#

Can you run a bare workflow and run again using the latest stripe-react-native SDK?