Skip to content

Commit 9bbce76

Browse files
authored
docs: Make it clear in the README which React Native versions are supported
Fixes react-native-netinfo#108
1 parent a28a91f commit 9bbce76

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ protected List<ReactPackage> getPackages() {
101101

102102
</details>
103103

104+
## React Native Compatibility
105+
To use this library you need to ensure you are using the correct version of React Native. If you are using a version of React Native that is lower than `0.57` you will need to upgrade that before attempting to use this library.
106+
107+
| `@react-native-community/netinfo` version | Required React Native Version |
108+
| ----------------------------------------- | ----------------------------- |
109+
| `3.x.x` | `>= 0.59` |
110+
| `2.x.x` | `>= 0.57` |
111+
| `1.x.x` | `>= 0.57` |
112+
104113
## Migrating from the core `react-native` module
105114
This module was created when the NetInfo was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:
106115

0 commit comments

Comments
 (0)