Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import { Button, StyleSheet, TextInput, View } from "react-native";
- export default class App extends Component {
- constructor(props) {
- super(props);
- }
- render() {
- return (
- <View style={styles.container}>
- <TextInput
- placeholder={"user@email.com"}
- style={styles.textInput}
- />
- <TextInput
- secureTextEntry={true}
- placeholder={"Your super secret password"}
- style={styles.textInput}
- />
- <Button title={"Login"} />
- </View>
- );
- }
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: "#F5FCFF",
- justifyContent: "center",
- alignItems: "center"
- },
- welcome: {
- fontSize: 20,
- textAlign: "center",
- margin: 10
- },
- textInput: {
- borderWidth: 1,
- borderColor: "mediumaquamarine",
- height: 45,
- width: 300,
- padding: 5,
- marginBottom: 22
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement