From a3cea2a616e5cc1e34e38feab9d51c1ace98c591 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 29 Aug 2024 15:09:13 -0400 Subject: [PATCH] fix text --- app/index.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/index.jsx b/app/index.jsx index aa5f58f..4ff9f41 100644 --- a/app/index.jsx +++ b/app/index.jsx @@ -1,8 +1,10 @@ import { Stack, useNavigation } from 'expo-router'; import { ImageBackground, StyleSheet, Button, TextInput, Text, View ,Image,Alert } from 'react-native'; -import { useEffect } from 'react'; +import { useEffect,useState } from 'react'; const Home =()=> { + const [username, onChangeUsername] = useState(''); + const [password, onChangePassword] = useState(''); const image = {uri: 'https://rader.app/assets/images/app/home.jpg'}; @@ -21,7 +23,8 @@ const Home =()=> { name='username' editable maxLength={40} - value='' + value={username} + onChangeText={onChangeUsername} style={styles.textInp} /> @@ -29,7 +32,8 @@ const Home =()=> { name ='password' editable maxLength={40} - value='' + value={password} + onChangeText={onChangePassword} style={styles.textInp} /> @@ -67,7 +71,7 @@ const styles = StyleSheet.create({ margin:'auto' }, textInp:{ - padding: '10', + padding: '10px', backgroundColor: 'whitesmoke', fontSize:'18px', borderRadius: '5px'