This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {View, Text, StyleSheet} from 'react-native'; | |
import moment from 'moment'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {}; | |
} | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Current Date: {moment().format()} </Text> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: 'white', | |
justifyContent: 'center', | |
alignItems: 'center', | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment