Skip to content

Commit

Permalink
add usage example to example project
Browse files Browse the repository at this point in the history
  • Loading branch information
Omer Lachish 👾 committed Apr 7, 2016
1 parent 453a269 commit ad8a892
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion example/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import React, {
View
} from 'react-native';

var RequiresConnection = require('react-native-offline-mode')

class example extends Component {
render() {
return (
Expand Down Expand Up @@ -49,4 +51,4 @@ const styles = StyleSheet.create({
},
});

AppRegistry.registerComponent('example', () => example);
AppRegistry.registerComponent('example', () => RequiresConnection(example));
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"dependencies": {
"react": "^0.14.8",
"react-native": "^0.23.0"
"react-native": "^0.23.0",
"react-native-offline-mode": "https://github.com/rauchy/react-native-offline-mode"
}
}

0 comments on commit ad8a892

Please sign in to comment.