Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl-react-native-v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
gl-react-native-v2
Commits
a992dc45
Commit
a992dc45
authored
Feb 26, 2016
by
Alex de Mulder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated install docs.
parent
ad6daf52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
README.md
README.md
+13
-12
No files found.
README.md
View file @
a992dc45
...
...
@@ -31,21 +31,22 @@ npm i --save gl-react-native
include
':RNGL'
project
(
':RNGL'
).
projectDir
=
file
(
'../node_modules/gl-react-native/android'
)
```
1
.
`android/app/build.gradle`
: Add in dependencies block.
2
.
`android/app/build.gradle`
: Add in dependencies block.
```
gradle
compile
project
(
':RNGL'
)
```
1.
in your
`MainActivity`
(or equivalent)
:
3.
in your
`MainActivity`
(or equivalent) the RNGLPackage needs to be added. Add the import at the top
:
```
java
import
com.projectseptember.RNGL.RNGLPackage
;
...
mReactInstanceManager
=
ReactInstanceManager
.
builder
()
.
setApplication
(
getApplication
())
...
.
addPackage
(
new
MainReactPackage
())
.
addPackage
(
new
RNGLPackage
())
...
.
build
();
```
4.
In order for React Native to use the package, add it the packages inside of the class extending ReactActivity.
```
java
@Override
protected
List
<
ReactPackage
>
getPackages
()
{
return
Arrays
.<
ReactPackage
>
asList
(
new
MainReactPackage
(),
...
new
RNGLPackage
()
);
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment