title: SafeAreaView doesn't let Appium find accessibility ID of children Views on React Native
body: <p>I am working on some end-to-end tests for a React Native (version 0.60) application which are run via Appium. </p>
  
  <p>I have a couple of buttons which are wrapped around a <code>SafeAreaView</code> to avoid problems with the latest iOS devices (e.g. iPhone X, iPad Pro, etc...). This is the key part of the Component <code>render()</code> function:</p>
  
  <pre><code>const Buttons = (
      &lt;StickyContainer visible={isSizeSelected} width={width} style={containerStyle}&gt;
          {showAddToWishlist &amp;&amp; (
              &lt;Button
                  outline
                  fixedWidth
                  uppercase
                  tx="product.addToWishlist"
                  onPress={() =&gt; this.onPressAddTo(ProductAction.AddToWishlist)}
                  icon="heartBlack"
                  margin={margin}
                  showSpinner={isAddingToWishlist}
              /&gt;
          )}
          {showAddToShoppingBag &amp;&amp; (
              &lt;Button
                  primary
                  fixedWidth
                  uppercase
                  tx="product.addToCart"
                  onPress={() =&gt; this.onPressAddTo(ProductAction.AddToShoppingBag)}
                  showSpinner={isAddingToShoppingBag}
                  {...setTestId("sizeOverlayAddToCartButton")}
              /&gt;
          )}
      &lt;/StickyContainer&gt;
  )
  
  return &lt;SafeAreaView forceInset={{ bottom: "never" }}&gt;{Buttons}&lt;/SafeAreaView&gt;
  </code></pre>
  
  <p>As you can see, the accessibility IDs are set through the <code>setTestid()</code> function which is doing nothing more than this:</p>
  
  <pre><code>const getPlatformTestId = (id: string) =&gt; {
      if (IS_IOS) {
          return {
              testID: id
          }
      }
  
      return {
          accessibilityLabel: id,
          accessible: true
      }
  }
  
  export const setTestId = (id: string) =&gt; {
      return getPlatformTestId(id)
  }
  </code></pre>
  
  <p>Now <strong>the problem</strong>: if I run the app and I try to search on Appium for the ID <code>sizeOverlayAddToCartButton</code> I can't find anything. If I remove the <code>&lt;SafeAreaView&gt;</code> and I return directly <code>Buttons</code> the ID is found without any problem. 
  It's also interesting that if I use the app Accessibility Inspector (it's part of Xcode) instead of Appium, the ID is always found no matter if I use the <code>&lt;SafeAreaView&gt;</code>.</p>
  
  <p>Does someone know why this is not working? I can't find any compatibility issue online</p>