Created
May 7, 2019 13:37
-
-
Save PavanKu/97586fa5e0da1425fcec2ef37606c74d to your computer and use it in GitHub Desktop.
Simple React Native Example
This file contains hidden or 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 from 'react'; | |
import { StyleSheet, Text, View, Image } from 'react-native'; | |
import Counter from './components/Counter'; | |
import Greeting from "./components/Greeting2"; | |
import SimpleTextInput from './components/SimpleTextInput'; | |
import SimpleButton from './components/SimpleButton'; | |
import LoginForm from './components/LoginForm'; | |
import PictureList from './components/PictureList'; | |
export default class App extends React.Component { | |
render() { | |
const pictureData = { | |
uri: 'https://picsum.photos/300/300' | |
}; | |
return ( | |
<View style={styles.container}> | |
<PictureList /> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: '#f5fcff', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}, | |
image: { | |
margin: 5, | |
borderRadius: 5, | |
width: 300, | |
height: 300 | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment