Skip to content

Commit

Permalink
Describes a workaround for when autolinking does not install net… (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rszalski authored and rgommezz committed Sep 17, 2019
1 parent cd873cf commit b4b1bcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit b4b1bcb

Please sign in to comment.