We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453a269 commit ad8a892Copy full SHA for ad8a892
example/index.ios.js
@@ -11,6 +11,8 @@ import React, {
11
View
12
} from 'react-native';
13
14
+var RequiresConnection = require('react-native-offline-mode')
15
+
16
class example extends Component {
17
render() {
18
return (
@@ -49,4 +51,4 @@ const styles = StyleSheet.create({
49
51
},
50
52
});
53
-AppRegistry.registerComponent('example', () => example);
54
+AppRegistry.registerComponent('example', () => RequiresConnection(example));
example/package.json
@@ -7,6 +7,7 @@
7
8
"dependencies": {
9
"react": "^0.14.8",
10
- "react-native": "^0.23.0"
+ "react-native": "^0.23.0",
+ "react-native-offline-mode": "https://github.com/rauchy/react-native-offline-mode"
}
0 commit comments