Skip to content

Instantly share code, notes, and snippets.

@PavanKu
Created May 7, 2019 13:37
Show Gist options
  • Save PavanKu/97586fa5e0da1425fcec2ef37606c74d to your computer and use it in GitHub Desktop.
Save PavanKu/97586fa5e0da1425fcec2ef37606c74d to your computer and use it in GitHub Desktop.
Simple React Native Example
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