Skip to content

Instantly share code, notes, and snippets.

@spencercarli
Last active October 26, 2016 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencercarli/3f430c7b5d3f3603371e52beb2377866 to your computer and use it in GitHub Desktop.
Save spencercarli/3f430c7b5d3f3603371e52beb2377866 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Platform,
} from 'react-native';
import OneSignal from 'react-native-onesignal';
class App extends Component {
componentDidMount() {
OneSignal.configure({});
}
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to the OneSignal Example!
</Text>
<Text style={styles.instructions}>
Using {Platform.OS}? Cool.
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment