Skip to content

Commit

Permalink
chore: web support + docs (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommezz committed Sep 8, 2021
1 parent 71246ca commit 6926033
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ To request network info in Android an extra step is required, so you should add

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

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

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`.

Expand Down
9 changes: 8 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ import pkg from './package.json';

export default {
input: 'src/index.ts',
external: ['react', 'react-native', 'redux', 'react-redux', 'redux-saga'],
external: [
'react',
'react-native',
'redux',
'react-redux',
'redux-saga',
'@react-native-community/netinfo',
],
plugins: [resolve(), commonjs(), typescript()],
output: [
{ file: pkg.main, format: 'cjs' },
Expand Down

0 comments on commit 6926033

Please sign in to comment.