react-native-stripe-checkout
react-native-stripe-checkout copied to clipboard
Cannot read property 'bold' of undefined
I am working on android. In package.json i have the following configurations. "react": "^15.4.2", "react-native": "0.40.0", "react-native-stripe-checkout": "0.0.15",
And the code is as below: import { AddCard, SelectPayment } from 'react-native-stripe-checkout';
render() { return ( <View style={{ flex: 1, marginTop: 20 }}> <SelectPayment enableApplePay={false} // optional, default: false applePayHandler={() => console.log('apple pay is go')} paymentSources={[{}]} // mandatory, See: Customer Object -> sources -> data for exact format. selectPaymentHandler={(paymentSource) => console.log(paymentSource)} fontFamily="" // Optional, Default: iOS default fontSize={16} // Optional, Default: iOS default //more custom styles
/>
<AddCard
createCardHandler={(cardDetails) => console.log(cardDetails)}
invalidStyle={{ borderColor: 'red' }} // Optional. Default: {borderColor: 'red'}
fontFamily="" // Optional, Default: iOS default
fontSize={16} // Optional, Default: iOS default
/>
</View>
); }
I am getting the error as below: Cannot read property 'bold' of undefined
Could you please help me on this.