Skip to content

Commit 97816be

Browse files
Damian Sznajderkristfal
authored andcommitted
Make iOS installation clear for newest RN 60 with autolinking. (#244)
* Update iOS installation docs with additional note for RN 60 * Update install.md
1 parent 16c83f7 commit 97816be

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

android/install.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Android Installation
2+
3+
## If you are using autolinking feature introduced in React-Native `0.60.0` you can skip `react-native link react-native-mapbox-gl` command and just follow first paragraph
4+
25
`react-native link` should get you almost there,
36
however we need to add some additional lines to `build.gradle`.
47

58

6-
## `android/build.gradle`
9+
## 1. `android/build.gradle`
710
We need to add an additional repository in order to get our dependencies.
811

912
* `https://jitpack.io`
@@ -42,7 +45,7 @@ however it never hurts to make sure it actually did what it was supposed to
4245
---
4346

4447

45-
## `android/app/build.gradle`
48+
## 2. `android/app/build.gradle`
4649

4750
Add project under `dependencies`
4851

@@ -60,7 +63,7 @@ You can set the Support Library version or the okhttp version if you use other m
6063
* `okhttpVersion "3.12.1"`
6164

6265

63-
## `android/app/settings.gradle`
66+
## 3. `android/app/settings.gradle`
6467

6568
Include project, so gradle knows where to find the project
6669

@@ -73,7 +76,7 @@ rootProject.name = <YOUR_PROJECT_NAME>
7376
include ':app'¬
7477
```
7578

76-
## `android/app/src/main/java/com/PROJECT_NAME/MainApplication.java`
79+
## 4. `android/app/src/main/java/com/PROJECT_NAME/MainApplication.java`
7780

7881
We need to register our package
7982

ios/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# iOS Installation
22

3+
## If you are using autolinking feature introduced in React-Native `0.60.0` you do not need any additional steps.
4+
35
## Using CocoaPods
46

57
To install with CocoaPods, add the following to your `Podfile`:
@@ -111,6 +113,4 @@ If you have any issues related to not being able to find strip-frameworks.sh dur
111113

112114
![](https://s3.systemlevel.com/docs-public/drag.png)
113115

114-
115-
116116
Checkout the [example application](/example/README.md) to see how it's configured for an example.

0 commit comments

Comments
 (0)