Skip to content

Instantly share code, notes, and snippets.

@rashidthedeveloper
Last active October 29, 2019 07:18
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 rashidthedeveloper/23a68a8429101be35379f303fc7e1620 to your computer and use it in GitHub Desktop.
Save rashidthedeveloper/23a68a8429101be35379f303fc7e1620 to your computer and use it in GitHub Desktop.
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