Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { StyleSheet, Text, View, TextInput } from 'react-native';
- export default class App extends React.Component {
- render() {
- return (
- <View style={styles.container}>
- <Text>Username</Text>
- <TextInput
- style={styles.username}
- placeholder="Username"
- />
- <Text>Password</Text>
- <TextInput
- style={styles.username}
- placeholder="Password"
- />
- </View>
- );
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: '#7ed6df',
- justifyContent: 'center',
- padding: 10
- },
- username: {
- width: '100%',
- borderWidth: 1,
- borderColor: 'black',
- backgroundColor: '#fff',
- padding: 5
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement