xinstall-rn

0.0.1 • Public • Published

react-native-xinstall

Getting started

$ npm install react-native-xinstall --save

Mostly automatic installation

$ react-native link react-native-xinstall

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

Usage

import RNXinstall from 'react-native-xinstall';

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

Readme

Keywords

Package Sidebar

Install

npm i xinstall-rn

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

3.8 MB

Total Files

15

Last publish

Collaborators

  • xinstall