npm.io
4.0.0 • Published 6 years ago

react-native-lotame

Licence
MIT
Version
4.0.0
Deps
0
Size
56 kB
Vulns
0
Weekly
0

react-native-lotame

NOTE for iOS If being added to an Objective c project. After installation. Add an empty swift file and bridging header file (Xcode should suggest adding it).

Getting started

$ npm install react-native-lotame --save or $ yarn add react-native-lotame

Mostly automatic installation

$ react-native link react-native-lotame (not needed for react native >= 0.6)

Manual installation
iOS
  1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
  2. Go to node_modules ➜ react-native-lotame and add RNLotame.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNLotame.a to your project's Build Phases ➜ Link Binary With Libraries
  4. Run your project (Cmd+R)<
Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.shukerullah.lotame.RNLotamePackage; to the imports at the top of the file
  • Add new RNLotamePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-lotame'
    project(':react-native-lotame').projectDir = new File(rootProject.projectDir,     '../node_modules/react-native-lotame/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-lotame')

Usage

import RNLotame from "react-native-lotame";

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

Keywords