1.0.1 • Published 2 years ago

react-native-rn-sum v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

react-native-rn-sum

Getting started

$ npm install react-native-rn-sum --save

Mostly automatic installation

$ react-native link react-native-rn-sum

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNRnSumPackage; to the imports at the top of the file
  • Add new RNRnSumPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-rn-sum'
    project(':react-native-rn-sum').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-rn-sum/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-rn-sum')

Usage

import RNRnSum from 'react-native-rn-sum';

// TODO: What to do with the module?
RNRnSum;