Skip to content

Commit 6926033

Browse files
authored
chore: web support + docs (#331)
1 parent 71246ca commit 6926033

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ To request network info in Android an extra step is required, so you should add
103103

104104
`<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />`
105105

106-
### Expo >= 35
106+
### Version Compatibility table
107+
| react-native-offline | Netinfo | Expo SDK | Web support |
108+
| ------------------------- | -------- | ------- | ----- |
109+
| 5.8.0 | 5.x.x | < 41 | No |
110+
| 6.0.0 | 6.x.x | 41+ | Yes |
107111

108112
If you are using the [managed workflow](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/#managed-workflow), you don't need to install any extra dependency. Expo SDK already ships in with `NetInfo`.
109113

rollup.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ import pkg from './package.json';
55

66
export default {
77
input: 'src/index.ts',
8-
external: ['react', 'react-native', 'redux', 'react-redux', 'redux-saga'],
8+
external: [
9+
'react',
10+
'react-native',
11+
'redux',
12+
'react-redux',
13+
'redux-saga',
14+
'@react-native-community/netinfo',
15+
],
916
plugins: [resolve(), commonjs(), typescript()],
1017
output: [
1118
{ file: pkg.main, format: 'cjs' },

0 commit comments

Comments
 (0)