mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-13 17:45:45 +08:00
34 lines
594 B
JavaScript
34 lines
594 B
JavaScript
'use strict';
|
|
|
|
import React, {Component} from 'react';
|
|
import {
|
|
AppRegistry,
|
|
StyleSheet,
|
|
Text,
|
|
View
|
|
} from 'react-native';
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
},
|
|
mainText: {
|
|
fontSize: 20,
|
|
textAlign: 'center',
|
|
margin: 10,
|
|
},
|
|
});
|
|
|
|
class MainComponent extends Component {
|
|
render() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.mainText}>Wix React Native Notifications</Text>
|
|
</View>
|
|
)
|
|
}
|
|
}
|
|
|
|
AppRegistry.registerComponent('WixRNNotifications', () => MainComponent);
|