fix text
This commit is contained in:
+8
-4
@@ -1,8 +1,10 @@
|
|||||||
import { Stack, useNavigation } from 'expo-router';
|
import { Stack, useNavigation } from 'expo-router';
|
||||||
import { ImageBackground, StyleSheet, Button, TextInput, Text, View ,Image,Alert } from 'react-native';
|
import { ImageBackground, StyleSheet, Button, TextInput, Text, View ,Image,Alert } from 'react-native';
|
||||||
import { useEffect } from 'react';
|
import { useEffect,useState } from 'react';
|
||||||
|
|
||||||
const Home =()=> {
|
const Home =()=> {
|
||||||
|
const [username, onChangeUsername] = useState('');
|
||||||
|
const [password, onChangePassword] = useState('');
|
||||||
|
|
||||||
const image = {uri: 'https://rader.app/assets/images/app/home.jpg'};
|
const image = {uri: 'https://rader.app/assets/images/app/home.jpg'};
|
||||||
|
|
||||||
@@ -21,7 +23,8 @@ const Home =()=> {
|
|||||||
name='username'
|
name='username'
|
||||||
editable
|
editable
|
||||||
maxLength={40}
|
maxLength={40}
|
||||||
value=''
|
value={username}
|
||||||
|
onChangeText={onChangeUsername}
|
||||||
style={styles.textInp}
|
style={styles.textInp}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -29,7 +32,8 @@ const Home =()=> {
|
|||||||
name ='password'
|
name ='password'
|
||||||
editable
|
editable
|
||||||
maxLength={40}
|
maxLength={40}
|
||||||
value=''
|
value={password}
|
||||||
|
onChangeText={onChangePassword}
|
||||||
style={styles.textInp}
|
style={styles.textInp}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -67,7 +71,7 @@ const styles = StyleSheet.create({
|
|||||||
margin:'auto'
|
margin:'auto'
|
||||||
},
|
},
|
||||||
textInp:{
|
textInp:{
|
||||||
padding: '10',
|
padding: '10px',
|
||||||
backgroundColor: 'whitesmoke',
|
backgroundColor: 'whitesmoke',
|
||||||
fontSize:'18px',
|
fontSize:'18px',
|
||||||
borderRadius: '5px'
|
borderRadius: '5px'
|
||||||
|
|||||||
Reference in New Issue
Block a user