1.0.10 • Published 7 years ago
react-native-paint-board-library v1.0.10
react-native-paint-board-library
Getting started
$ npm install react-native-paint-board-library --save
Mostly automatic installation
$ react-native link react-native-paint-board-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-paint-board-libraryand addRNPaintBoardLibrary.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNPaintBoardLibrary.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.RNPaintBoardLibraryPackage;to the imports at the top of the file - Add
new RNPaintBoardLibraryPackage()to the list returned by thegetPackages()method
- Append the following lines to
android/settings.gradle:include ':react-native-paint-board-library' project(':react-native-paint-board-library').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-paint-board-library/android') - Insert the following lines inside the dependencies block in
android/app/build.gradle:compile project(':react-native-paint-board-library')
Windows
- In Visual Studio add the
RNPaintBoardLibrary.slninnode_modules/react-native-paint-board-library/windows/RNPaintBoardLibrary.slnfolder to their solution, reference from their app. - Open up your
MainPage.csapp
- Add
using Paint.Board.Library.RNPaintBoardLibrary;to the usings at the top of the file - Add
new RNPaintBoardLibraryPackage()to theList<IReactPackage>returned by thePackagesmethod
Usage
import RNPaintBoardLibrary from 'react-native-paint-board-library';
// TODO: What to do with the module?
RNPaintBoardLibrary;