title: React Native + Appium iOS elementByAccesibilityId.text()
body: <p>I'm writing tests for React Native using Appium + Jest for both Android and iOS.</p>
  
  <p>Here's my React Native element:</p>
  
  <pre><code>&lt;Text accessibilityLabel={'emailError'}&gt;Invalid email&lt;/Text&gt;
  </code></pre>
  
  <p>Here's the Promise chain I created to extract the value of a React Native <code>Text</code> element:</p>
  
  <pre><code>driver.elementByAccessibilityId('emailError')
        .then(error =&gt; error.text())
        .then(errorText =&gt; expect(errorText).toBe('Invalid email'))
  </code></pre>
  
  <p>On Android, this test passes. On iOS, this test fails, and <code>errorText === 'emailError'</code>.</p>
  
  <p>Why is this, and is there a solution that works cross-platform for extracting text?</p>