Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

linrium/react-native-nokex

Repository files navigation

react-native-noke

Getting started

$ npm install react-native-noke --save

Mostly automatic installation

$ react-native link react-native-noke

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-noke and add Noke.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libNoke.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

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

Usage

import Noke from 'react-native-noke';

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published