0.0.5 • Published 7 years ago

react-native-android-build-config v0.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

react-native-android-build-config

This is an under development library

Getting started

$ npm install react-native-android-build-config --save

Mostly automatic installation

$ react-native link react-native-android-build-config

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.androidbuildconfig.RNAndroidBuildConfigPackage; to the imports at the top of the file
  • Add new RNAndroidBuildConfigPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-android-build-config'
    project(':react-native-android-build-config').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-android-build-config/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-android-build-config')

Usage

import RNAndroidBuildConfig from 'react-native-android-build-config';

// TODO: What to do with the module?
RNAndroidBuildConfig;
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago