react-native-todo-note
v1.0.0
Published
use this react native component to add note to your app or use it as reusable note input
Downloads
5
Readme
react-native-todo-note
Getting started
$ npm install react-native-todo-note --save
Mostly automatic installation
$ react-native link react-native-todo-note
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-todo-note
and addRNTodoNote.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNTodoNote.a
to 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.RNTodoNotePackage;
to the imports at the top of the file - Add
new RNTodoNotePackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-todo-note' project(':react-native-todo-note').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-todo-note/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-todo-note')
Usage
import RNTodoNote from "react-native-todo-note";
// TODO: What to do with the module?
RNTodoNote;