Commit 9fac55c6 authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

Merge branch 'master' of github.com:ProjectSeptemberInc/gl-react-native

parents 60e2d0f0 86422c67
...@@ -27,20 +27,20 @@ npm i --save gl-react-native ...@@ -27,20 +27,20 @@ npm i --save gl-react-native
**on Android:** **on Android:**
1. `android/settings.gradle`:: Add the following snippet 1. `android/settings.gradle`:: Add the following snippet
```gradle ```gradle
include ':RNGL' include ':RNGL'
project(':RNGL').projectDir = file('../node_modules/gl-react-native/android') project(':RNGL').projectDir = file('../node_modules/gl-react-native/android')
``` ```
1. `android/app/build.gradle`: Add in dependencies block. 1. `android/app/build.gradle`: Add in dependencies block.
```gradle ```gradle
compile project(':RNGL') compile project(':RNGL')
``` ```
1. in your `MainActivity` (or equivalent): 1. in your `MainActivity` (or equivalent):
```java ```java
import com.projectseptember.RNGL.RNGLPackage; import com.projectseptember.RNGL.RNGLPackage;
... ...
mReactInstanceManager = ReactInstanceManager.builder() mReactInstanceManager = ReactInstanceManager.builder()
.setApplication(getApplication()) .setApplication(getApplication())
... ...
.addPackage(new MainReactPackage()) .addPackage(new MainReactPackage())
...@@ -48,4 +48,4 @@ npm i --save gl-react-native ...@@ -48,4 +48,4 @@ npm i --save gl-react-native
... ...
.build(); .build();
``` ```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment