Advertisement
lddep

SignInScreen.js

Jun 14th, 2019
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2. import {Platform,
  3.     StyleSheet,
  4.     Text,
  5.     View,
  6.     TextInput,
  7.     TouchableOpacity,
  8.     Image,
  9. } from 'react-native';
  10.  
  11.  
  12.  
  13.  
  14. export default class SignInScreen extends Component {
  15.   render() {
  16.     return (
  17.       <View style={styles.SignInBox}>
  18.         <TextInput style={styles.txtEmailSign} placeholder="Email"  />
  19.        
  20.         <TextInput style={styles.txtPassSign} secureTextEntry={true} placeholder="Password"  />
  21.        
  22.         <View style={styles.masterRow}>
  23.  
  24.           <View style={styles.subColumn1}>
  25.  
  26.             <TouchableOpacity style={styles.btnForgot}>
  27.                 <Text style={styles.txtBottomHelp}>
  28.                     I forgot my password
  29.                 </Text>
  30.             </TouchableOpacity>
  31.    
  32.             <TouchableOpacity style={styles.btnDontHave}>
  33.                 <Text style={styles.txtBottomHelp}>
  34.                     I don't have an account
  35.                </Text>
  36.            </TouchableOpacity>
  37.  
  38.          </View>
  39.  
  40.          <View style={styles.subColumn2}>
  41.  
  42.            <TouchableOpacity style={styles.btnNext} activeOpacity={0.5}>
  43.              <Image style={styles.imgBtnNext} source={require('../assets/arrowRightBlue.png')}/>
  44.            </TouchableOpacity>
  45.  
  46.          </View>
  47.  
  48.        </View>
  49.  
  50.      </View>
  51.    );
  52.  }
  53. }
  54.  
  55. const styles = StyleSheet.create({
  56.  SignInBox: {
  57.    position: 'absolute',
  58.    height: 250,
  59.    backgroundColor: '#fff',
  60.    bottom: 0,
  61.    width: '100%',
  62.    paddingHorizontal: 10,
  63.  },
  64.  txtEmailSign: {
  65.    alignSelf: 'stretch',
  66.    height: 40,
  67.    fontSize: 18,
  68.    color: 'black',
  69.    borderBottomColor: 'black',
  70.    borderBottomWidth: 1,
  71.    top: 25,
  72.    marginBottom: 30,
  73.  },
  74.  txtPassSign: {
  75.    alignSelf: 'stretch',
  76.    height: 40,
  77.    color: 'black',
  78.    fontSize: 18,
  79.    borderBottomColor: 'black',
  80.    borderBottomWidth: 1,
  81.    marginTop: 25,
  82.    marginBottom: 25,
  83.  },
  84.  btnForgot: {
  85.    marginBottom: 10,
  86.  },
  87.  txtBottomHelp: {
  88.    color: '#007AFF',
  89.    fontSize: 16,
  90.  },
  91.  btnNext: {
  92.    bottom: 2,
  93.    right: 2,
  94.    alignItems: 'center',
  95.    width: 60,
  96.    height: 60,
  97.  },
  98.  imgBtnNext: {
  99.    resizeMode: 'stretch',
  100.    width: 60,
  101.    height: 60,
  102.    bottom: 2,
  103.    right: 2,
  104.  },
  105.  masterRow: {
  106.    flexDirection: 'row',
  107.    marginTop: 25,
  108.    width: '100%',
  109.    justifyContent: 'space-between',
  110.  
  111.  },
  112.  subColumn1: {
  113.    flexDirection: 'column',
  114.    marginRight: '30',
  115.    
  116.  },
  117.  subColumn1: {
  118.    bottom: 2,
  119.    left: 0,
  120.  },
  121. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement