rn-app-version
v1.0.1
Published
## Getting started
Downloads
1
Readme
rn-app-version
Getting started
$ npm install rn-app-version --save
Mostly automatic installation
$ react-native link rn-app-version
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜rn-app-version
and addRNAppVersion.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNAppVersion.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.RNAppVersionPackage;
to the imports at the top of the file - Add
new RNAppVersionPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':rn-app-version' project(':rn-app-version').projectDir = new File(rootProject.projectDir, '../node_modules/rn-app-version/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':rn-app-version')
Usage
import RNAppVersion from 'rn-app-version';
// TODO: What to do with the module?
RNAppVersion;