Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
  3. import { StackNavigator } from 'react-navigation';
  4.  
  5. export default class Ad extends React.Component {
  6.   render() {
  7.     return (
  8.       <View style = {styles.container}>
  9.         <Text style = {styles.MainTitle}>Create Ad</Text>
  10.         <View>
  11.           <Text style = {styles.Title}>Title</Text>
  12.           <TextInput
  13.             returnKeyType = "next"
  14.             keyboardType = "default"
  15.             autoCorrect = {true}
  16.             style = {styles.input}
  17.           </TextInput>
  18.         </View>
  19.  
  20.         <View>
  21.           <Text style = {styles.Title}>Description</Text>
  22.           <TextInput
  23.             returnKeyType = "next"
  24.             keyboardType = "default"
  25.             autoCorrect = {true}
  26.             style = {styles.input}
  27.           </TextInput>
  28.         </View>
  29.       </View>
  30.     );
  31.   }
  32. }
  33.  
  34. const styles = StyleSheet.create({
  35.   container: {
  36.     flex: 2,
  37.     backgroundColor: 'rgba(255,255,255,1)',
  38.     alignItems: 'center',
  39.     justifyContent: 'center',
  40.   },
  41.   Title:{},
  42.   input:{},
  43.   MainTitle:{},
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement