Skip to content

Commit b4b1bcb

Browse files
rszalskirgommezz
authored andcommitted
Describes a workaround for when autolinking does not install net… (#218)
1 parent cd873cf commit b4b1bcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ $ yarn add react-native-offline
7979
$ npm i --save react-native-offline
8080
```
8181

82-
This library uses `@react-native-community/[email protected]` 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`.
82+
This library uses `@react-native-community/[email protected]` version underneath the hood. You then need to link the native parts of the library for the platforms you are using.
83+
84+
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`.
8385

8486
Otherwise, the easiest way to link the library is using the CLI tool by running this command from the root of your project:
8587

0 commit comments

Comments
 (0)