0.1.84 • Published 4 years ago

@namiml/nami-react-native-module v0.1.84

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

react-native-nami

Getting started

$ npm install react-native-nami --save

Mostly automatic installation

$ react-native link react-native-nami

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-nami and add RNNami.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNNami.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/[...]/MainActivity.java
  • Add import com.reactlibrary.RNNamiPackage; to the imports at the top of the file
  • Add new RNNamiPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-nami'
    project(':react-native-nami').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-nami/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-nami')

Windows

Read it! :D

  1. In Visual Studio add the RNNami.sln in node_modules/react-native-nami/windows/RNNami.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using Nami.RNNami; to the usings at the top of the file
  • Add new RNNamiPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNNami from 'react-native-nami';

// TODO: What to do with the module?
RNNami;
0.1.84

4 years ago

0.1.83

4 years ago

0.1.82

4 years ago

0.1.80

4 years ago

0.1.81

4 years ago

0.1.79

4 years ago

0.1.78

4 years ago

0.1.77

4 years ago

0.1.76

4 years ago

0.1.74

4 years ago

0.1.75

4 years ago

0.1.73

4 years ago

0.1.71

4 years ago

0.1.72

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago