#Thanhpham
1 messages · Page 1 of 1 (latest)
Hi there, are you working on a react-native project? Can you share with me the relavant code?
And are you running in Expo Go?
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
but why is it still different when it's built?
It's really up to what Stripe SDK that the Expo Go app is built with.
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?
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}}
/>```
Oh unfortunately I'm using the card form in @stripe/stripe-react-native, where it doesn't have the 'postalCodeEnabled' as you said
OK. For CardForm it will only display postal code when needed (i.e., if the country is US or UK)
but why on android and ios i put the same country but android doesn't show but ios does