Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created February 18, 2019 12:57
Show Gist options
  • Save amandeepmittal/9b956e579ea0a67a81282b52145d8564 to your computer and use it in GitHub Desktop.
Save amandeepmittal/9b956e579ea0a67a81282b52145d8564 to your computer and use it in GitHub Desktop.
import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
TextInput
} from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text style={styles.header}>Todo List</Text>
<View style={styles.textInputContainer}>
<TextInput
style={styles.textInput}
multiline={true}
placeholder="What do you want to do today?"
placeholderTextColor="#abbabb"
/>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'flex-start',
alignItems: 'center',
backgroundColor: '#F5FCFF'
},
header: {
marginTop: '15%',
fontSize: 20,
color: 'red',
paddingBottom: 10
},
textInputContainer: {
flexDirection: 'row',
alignItems: 'baseline',
borderColor: 'black',
borderBottomWidth: 1,
paddingRight: 10,
paddingBottom: 10
},
textInput: {
flex: 1,
height: 20,
fontSize: 18,
fontWeight: 'bold',
color: 'black',
paddingLeft: 10,
minHeight: '3%'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment