Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

22
Views
KeyboardAvoidingView not working properly with behaviour position

The problem is simple to understand when I click inside the search bar everything goes up, check the images below to understand my problem

<KeyboardAvoidingView 
    behavior='position'>
    // code here
</KeyboardAvoidingView >

Before

enter image description here

After I click on the search bar, basically, everything goes up

enter image description here

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

its just android thing. so what you need to do is

<KeyboardAvoidingView
  behavior={(Platform.OS === 'ios') ? "padding" : null} enabled
  style={{ flex: 1,  }}>

  // your content

</KeyboardAvoidingView>
7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs