From b4b1bcb8c59c5a2e282ee5f33dc5c984c1062c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szalski?= Date: Wed, 18 Sep 2019 00:51:46 +0200 Subject: [PATCH] =?UTF-8?q?Describes=20a=20workaround=20for=20when=20autol?= =?UTF-8?q?inking=20does=20not=20install=20net=E2=80=A6=20(#218)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f576b6d8..e5d77832 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,9 @@ $ yarn add react-native-offline $ npm i --save react-native-offline ``` -This library uses `@react-native-community/netinfo@4.x.x` version underneath the hood. You then need to link the native parts of the library for the platforms you are using. If you are on React Native v0.60, you don't need to do anything else, since it supports autolinking. For iOS, just go to the `ios` folder and run `pod install`. +This library uses `@react-native-community/netinfo@4.x.x` version underneath the hood. You then need to link the native parts of the library for the platforms you are using. + +If you are on React Native v0.60, you don't need to do anything else, since it supports autolinking. For iOS, just go to the `ios` folder and run `pod install`. However, autolinking might not pick up and install the `@react-native-community/netinfo` dependency. If that happens, first install `@react-native-community/netinfo` directly, then run `pod install`, then install `react-native-offline` and finish with `pod install`. Otherwise, the easiest way to link the library is using the CLI tool by running this command from the root of your project: