Skip to content

Commit 472b78d

Browse files
committed
Updated android instructions on README
1 parent 19e0c1b commit 472b78d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,24 @@ Finally, open the created `.xcworkspace` in the `ios/` directory (**NOT THE `.xp
8484

8585
### Android setup
8686

87-
All we need to do is link `react-native-oauth` to our project and Android should just work.
87+
We need to handle two steps in the installation process:
88+
89+
* link `react-native-oauth` to our project (`react-native link react-native-oauth`)
90+
* Add the `maven { url "https://jitpack.io" }` to our `android/build.gradle` file under `allProjects`. For example:
91+
92+
```java
93+
allprojects {
94+
repositories {
95+
mavenLocal()
96+
jcenter()
97+
maven { url "https://jitpack.io" }
98+
maven {
99+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
100+
url "$rootDir/../node_modules/react-native/android"
101+
}
102+
}
103+
}
104+
```
88105

89106
## Handle deep linking loading
90107

0 commit comments

Comments
 (0)