title: How to prevent react native modal from moving up when keyboard opens in android?
body: <p>I have a very basic modal component(using <a href="https://github.com/react-native-community/react-native-modal" rel="nofollow noreferrer">React-native-modal</a>) which render its given child views. However, I dont want the behaviour similar to KeyBoardAvoiding view, i.e. I don't want the modal to be pushed up when keyboard opens.</p>
  <pre class="lang-js prettyprint-override"><code>  &lt;Modal
      isVisible={isVisible}
      onBackdropPress={onCartDismiss}
      style={CartStyles.cartModal}
      onSwipeEnd={this.onCartDismiss}
      onSwipe={this.onCartDismiss}
      swipeDirection=&quot;down&quot;
      swipeThreshold={200}
      propagateSwipe
      avoidKeyboard={false}
     &gt;
      {this.props.children}
      ....
  </code></pre>
  <p>On ios it is working fine i.e. the keyboard opens over the modal component, but not on android.  avoidKeyboard={false} is not working.</p>
  <p>This is my style for the modal (position:'absolute' didn't work too)</p>
  <pre class="lang-js prettyprint-override"><code>  cartModal: {
      position: 'absolute',
      justifyContent: 'flex-end',
      bottom: 0,
      left: 0,
      right: 0,
      zIndex: 1,
    },
  </code></pre>
  <p>I have even tried changing softinputmode in android manifest to :</p>
  <pre><code>  android:windowSoftInputMode=&quot;adjustPan&quot;
  </code></pre>