File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React , { useState } from "react" ;
2
+ import { Text , TextInput , View } from "react-native" ;
3
+
4
+ import ViewImageScreen from "./app/screens/ViewImageScreen" ;
5
+ import WelcomeScreen from "./app/screens/WelcomeScreen" ;
6
+ import ListingDetailsScreen from "./app/screens/ListingDetailsScreen" ;
7
+ import MessagesScreen from "./app/screens/MessagesScreen" ;
8
+ import Screen from "./app/components/Screen" ;
9
+ import Icon from "./app/components/Icon" ;
10
+ import ListItem from "./app/components/ListItem" ;
11
+ import AccountScreen from "./app/screens/AccountScreen" ;
12
+ import ListingScreen from "./app/screens/ListingScreen" ;
13
+ export default function App ( ) {
14
+ const [ firstName , setFirstName ] = useState ( "" ) ;
15
+ console . log ( firstName )
16
+ return (
17
+
18
+ < Screen >
19
+ < Text > { firstName } </ Text >
20
+ < TextInput
21
+ clearButtonMode = "always"
22
+ secureTextEntry
23
+ onChangeText = { ( text ) => setFirstName ( text ) }
24
+ placeholder = "First Name"
25
+ maxLength = { 100 }
26
+ keyboardType = "number-pad"
27
+ numberOfLines = { 2 }
28
+ style = { { borderBottomColor : "#ccc" , borderBottomWidth : 1 } }
29
+ > </ TextInput >
30
+ </ Screen >
31
+ ) ;
32
+ }
You can’t perform that action at this time.
0 commit comments