title: Testing expo-linear-gradient in react native ,throws TypeError: Cannot read property 'includes' of undefined
body: <p>My Error:</p>
  <pre><code> TypeError: Cannot read property 'includes' of undefined
  
    at requireNativeViewManager (node_modules/expo-modules-core/src/NativeViewManagerAdapter.native.tsx:28:49)
    at Object.&lt;anonymous&gt; (node_modules/expo-linear-gradient/src/NativeLinearGradient.android.tsx:49:34)
    at Object.&lt;anonymous&gt; (node_modules/expo-linear-gradient/src/LinearGradient.tsx:4:1)
  </code></pre>
  <p>My Presets :</p>
  <pre><code> projects: [
  { &quot;preset&quot;: &quot;jest-expo/ios&quot; },
  { &quot;preset&quot;: &quot;jest-expo/android&quot; },
  { &quot;preset&quot;: &quot;jest-expo/web&quot; },
  </code></pre>
  <p>],</p>
  <p>Component:</p>
  <pre><code> &lt;LinearGradient
        colors={colorsArray}
        style={{
          ...uikitStyles.progressBar,
          height: heightHandler(height).height,
          backgroundColor: bgColor,
          width: `${newWidth}%`,
        }}
        end={{ x: 1, y: 0 }}
        testID=&quot;gradient-test&quot;
      /&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/WxiZS.jpg" rel="nofollow noreferrer">Screen Shot of the error</a></p>
  <p>Im using '@testing-library/react-native' to write the test cases, can someone help me with this?</p>