Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

442
Views
keyboard is hiding the textinput . React Native (Expo CLI)

keyboard hides the some text input , I'm trying to use keyboardAvoidingView. it has no effect here. ?

this is my code

  • SEE THE CODE BETWEEN *****

IF I wrap scroll view with keyboardavoidingView or I wrap KeyboardAvoidingView with scroll.. it is not changing anything here, I have tried both

//import statments 

    return (

        <View style={style.MainContainer}>

            <View style={style.chooseDpContainer}>

  <TouchableOpacity onPress={openImagePickerAsync} style={style.chooseDpContainer}>
{(!ImageUrl)?(<><Avatar.Icon size={70} icon="camera-plus-outline" style={{marginEnd:10}} />
<Text>Choose a cool  Dp for your Pet</Text></>):
 (<><Avatar.Image size={70} source={{uri:ImageUrl}} style={{marginEnd:10}}/>
 
  <Text>Choose another Image?</Text>
  <Button mode="text" icon="delete" style={{fontSize:40}}  onPress={()=>{
      setImageUrl('')
  }}>Remove</Button>
  </>
 )}
  </TouchableOpacity>
  </View>
  <View style={style.divider} ></View>
  <Text style={{marginBottom:10}}>Your Pet Details</Text>

{/* KEYBOARD HIDES INPUT, PLEASE  REVIEW THIS CODE*/}
{/* *************************************************** */}

 <KeyboardAvoidingView style={{width:'100%'}}
 behavior={Platform.OS==="ios"?'padding':"height"}>
  <ScrollView style={{width:'100%'}}>
    {/* //  behavior='position'> */}
  <View style={style.Input}><TextInput label="Name"/></View>
  <View style={style.Input}><TextInput label="Age"/></View>
  <View style={style.Input}><TextInput label="Breed"/></View>
  <View style={style.Input}><TextInput label="Gender"/></View>
 
  </ScrollView>
  </KeyboardAvoidingView>

    {/* KEYBOARD HIDES INPUT, THANKS*/}  
{/* *************************************************** */}

        </View>
    )
}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!