tirupati17 / react-native-userexperior

Repository from Github https://github.comtirupati17/react-native-userexperiorRepository from Github https://github.comtirupati17/react-native-userexperior

react-native-user-experior

Getting started

$ npm install react-native-userexperior --save

or for locally

$ npm install -save file:/path-to-the-react-native-userexperior

Mostly automatic installation

$ react-native link react-native-userexperior

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

Very important (For iOS)

For Xcode 10.2 and Swift 5 support please add below line in the Build Settings of your react native iOS project to include the swift libraries:

  • Add below line in Library Search Path:
     $(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME) 
    
  • Add below line in the Runpath Search Path:
     /usr/lib/swift
    

Usage

import RNUserExperior from 'react-native-userexperior';

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

About


Languages

Language:Objective-C 54.8%Language:Java 25.0%Language:Python 11.5%Language:JavaScript 6.9%Language:Ruby 1.8%