How can I avoid resizing of a view because of keyboard on React Native

Viewed 91

I'm developing a React Native app. I have two view in a screen. Both of them have height property.

height: '50%'

This is my screen:

screen

This happens when I click one of the inputs:

screen2

Resizing of the map is not a problem but I want to avoid resizing of the other view. How can I do that?

1 Answers

Have you considered putting both the <View> component inside a <Scrollview> component? It will be a better user experience for the user as it allows scrolling as their need and can avoid shrinking of both the components

Related