0.5.8 • Published 5 years ago

react-native-mercadopago-checkout-v4 v0.5.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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!)

  1. 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 the getPackages() method
  1. 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')
  2. 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();
0.5.8

5 years ago

0.5.7

5 years ago

0.4.7

5 years ago

0.3.7

5 years ago

0.2.7

5 years ago

0.1.7

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago