react-native-mercadopago-checkout-v4
v0.5.8
Published
Bridge to MercadoPagoSDK
Downloads
12
Readme
NO USAR!! ACTUALMENTE EN DESAROLLO!!!
DO NOT USE!! CURRENTLY IN DEVELOPMENT!!!
react-native-mercado-pago-checkout-v4
React version: 0.61.5
Getting started
$ npm install react-native-mercado-pago-checkout-v4-test --save
Or
$ yarn add react-native-mercado-pago-checkout-v4-test
Config
iOS
Add this line in ios/Podfile before "target <PROJECT_NAME> do":
use_frameworks!
Remplace this line in AppDelegate.m:
self.window.rootViewController = rootViewController;
For this:
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
[navController setToolbarHidden:YES animated:YES];
[navController setNavigationBarHidden:YES];
self.window.rootViewController = navController;
Android (NOT WORK YET!)
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNMercadoPagoCheckoutV4Package;
to the imports at the top of the file - Add
new RNMercadoPagoCheckoutV4Package()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-mercado-pago-checkout-v4' project(':react-native-mercado-pago-checkout-v4').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mercado-pago-checkout-v4/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-mercado-pago-checkout-v4')
Usage
import RNMercadoPagoCheckoutV4 from 'react-native-mercado-pago-checkout-v4';
// TODO: What to do with the module?
RNMercadoPagoCheckoutV4.open();