Advertisement
lddep

btnRegister.Style

Jun 14th, 2019
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.64 KB | None | 0 0
  1. export default class PresentationScreen extends Component<Props> {
  2.    
  3.     callRegister = () => {
  4.         <SignInScreen/>    
  5.     }
  6.  
  7.   render() {
  8.    
  9.     return (
  10.       <View style={styles.Presentation}>
  11.         <Text style={styles.Title}>LimoGrid</Text>
  12.        
  13.         <Text style={styles.subTitle}>
  14.             YOUR PRIVATE DRIVER WORLDWIDE
  15.         </Text>
  16.  
  17.         <TouchableOpacity style={styles.btnSignUp} onPress={this.callRegister}>
  18.             <Text style={styles.txtBtnSignUp}>
  19.                 SIGN UP
  20.             </Text>
  21.         </TouchableOpacity>
  22.  
  23.         <TouchableOpacity style={styles.btnRegister}>
  24.             <Text style={styles.txtBtnRegister}>
  25.                 REGISTER
  26.             </Text>
  27.         </TouchableOpacity>
  28.  
  29.        
  30.  
  31.       </View>
  32.     );
  33.   }
  34. }
  35.  
  36. const styles = StyleSheet.create({
  37.   Presentation: {
  38.     flex: 1,
  39.     alignItems: 'center',
  40.     marginHorizontal: 15,
  41.   },
  42.   Title: {
  43.     fontSize: 30,
  44.     fontWeight: 'bold',
  45.     color: '#fff',
  46.     top: '35%',
  47.     marginBottom: 2,
  48.   },
  49.   subTitle: {
  50.     fontSize: 16,
  51.     color: '#fff',
  52.     top: '35%',
  53.     marginBottom: 260,
  54.   },
  55.   btnSignUp: {
  56.     alignItems: 'center',
  57.     justifyContent: 'center',
  58.     backgroundColor: '#336ce8',
  59.     bottom: 0,
  60.     height: 60,
  61.     width: 180,
  62.     marginTop: 40,
  63.     marginBottom: 10,
  64.   },
  65.   txtBtnSignUp: {
  66.     fontSize: 16,
  67.     color: '#fff',
  68.   },
  69.   btnRegister: {
  70.     alignItems: 'center',
  71.     justifyContent: 'center',
  72.     bottom: 0,
  73.     height: 60,
  74.     width: 180,
  75.     borderColor: '#fff',
  76.     borderWidth: 2,
  77.   },
  78.   txtBtnRegister: {
  79.     fontSize: 16,
  80.     color: '#fff',
  81.   },
  82. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement