npm.io
1.0.1 • Published 4 years ago

react-native-rn-sum

Licence
—
Version
1.0.1
Deps
0
Size
5 kB
Vulns
0
Weekly
0

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;

Keywords