react-native-braintree-card
react-native-braintree-card copied to clipboard
undefined is not an object (evaluating 'RNBraintreeCard.initWithAuthorization)
Trying to implement this with android.
on initialization 'BraintreeCardClient.initWithAuthorization(
on inspection I found var RNBraintreeCard = require('react-native').NativeModules.RNBraintreeCard; here in index.js on this line var RNBraintreeCard = require('react-native').NativeModules.RNBraintreeCard;
RNBraintreeCard is undefined. i.e. is not available in NativeModules of react-native.
How to fix this can anyone help?
thanks @kashifaliquazi but yeah I have not tested with Android so I am not supporting it.
try this package: https://github.com/kraffslol/react-native-braintree-xplat
it implements the same card nonce method https://github.com/kraffslol/react-native-braintree-xplat#custom-integration
Mind putting this in the Documentation? Preferably somewhere high?