0.0.4 • Published 5 years ago
@rahul_bajaj/react-native-qwerty-library v0.0.4
react-native-qwerty-library
Getting started
$ npm install @rahul_bajaj/react-native-qwerty-library --save
Mostly automatic installation
$ react-native link @rahul_bajaj/react-native-qwerty-library
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-qwerty-libraryand addRNQwertyLibrary.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNQwertyLibrary.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNQwertyLibraryPackage;to the imports at the top of the file - Add
new RNQwertyLibraryPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-qwerty-library' project(':react-native-qwerty-library').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-qwerty-library/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-qwerty-library')
Windows
- In Visual Studio add the
RNQwertyLibrary.slninnode_modules/react-native-qwerty-library/windows/RNQwertyLibrary.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Qwerty.Library.RNQwertyLibrary;to the usings at the top of the file - Add
new RNQwertyLibraryPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNQwertyLibrary from '@rahul_bajaj/react-native-qwerty-library';
// TODO: What to do with the module?
RNQwertyLibrary;