title: React Native - Making background image avoid keyboard
body: <p>I have a "fullscreen" background image that is used for a page:</p>
  
  <pre><code>container = {
      flex: 1,
      width: null,
      height: null
  }
  
  &lt;View ...&gt;
      ...
      &lt;Image ... styles={container}&gt;
          ...
          &lt;TextInput ... /&gt;
          ...
      &lt;/Image&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p>However, as you may notice, tapping on the text input will open up the keyboard and the height of view changes. Since the image is set to cover, it also adjusts as the dimension of the view changes. I want the height of the parent view and the <code>&lt;Image&gt;</code> to not be affected by the keyboard, and only the content of the <code>&lt;Image&gt;</code> should be pushed up by the keyboard.</p>
  
  <p>I'm aware there is a <a href="https://facebook.github.io/react-native/docs/keyboardavoidingview.html" rel="nofollow noreferrer"><code>&lt;KeyboardAvoidingView&gt;</code></a> available but I am not sure how to use it or does it even handle this situation.</p>
  
  <p>Any ideas would be great. Thanks.</p>