title: React Native Expo Android crashes only in production and is also not catchable in Sentry
body: <p>Already tried to look into all different problems here on StackOverflow with related titles, like this <a href="https://stackoverflow.com/questions/65437414/react-native-expo-app-crashes-in-production-mode">one</a>. But no success.</p>
  <p>Here is the piece of code where the problem happens:</p>
  <pre class="lang-js prettyprint-override"><code>const fetchApi = useCallback(async () =&gt; {
    setIsLoading(true);
  
    if (activePortfolioId) {
      try {
        const response = await getApis().portfoliosApi.getPortfolioOverviewById(
          activePortfolioId
        );
        if (response.data &amp;&amp; response.data?.tickers?.length) {
          setItems(handleListItems(response.data.tickers));
        }
      } catch (error) {
        Sentry.Native.captureException(error);
        Sentry.Native.captureMessage('HELLO?');
        Alert.alert(
          'Sorry!',
          'We were unable to retrieve the performance list. Please try again later.'
        );
      } finally {
        setIsLoading(false);
      }
    }
  }, [activePortfolioId]);
  </code></pre>
  <p>So what happens is, on iOS I have no problem at all here, either on DEV or PROD, using real device or simulator, everything works fine, never went to the <code>catch</code> statement. On Android, using simulator or real device with Expo, it's all fine too, even using <code>expo start --no-dev --minify</code> to try to reproduce the app as PROD, occurs no errors at all. I have tried everything that came on my mind, like removing pieces of the code to see if the problem stops. Like instead of calling the API, just setting the items, like this:</p>
  <p><code>setItems(handleListItems(response.data.tickers));</code> because I also thought that the problem might be with my handler function, I also tried to just do <code>setItems([{ OBJECT HERE }]);</code>. The problem has just stopped once I stopped setting the items. So I also tried to check my <code>renderItem</code> function, tried to stop using any <code>styled</code> component, just what React Native provides, nothing works. Then I decided to bring Sentry to my code but even with Sentry, no issues is shown there. I open the screen, it is loading, fetches the API, then it falls in the <code>catch</code> block, because I see the <code>Alert</code> on Android and then the app crashes and go back to the splash screen frozen. The only issue that appeared on Sentry was:</p>
  <pre><code>Could not open URL 'https://XXXXXXX': No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://XXXXXXX... flg=0x10000000 }
  </code></pre>
  <p>But strangely I have never clicked on this during the &quot;tests&quot; and this link just appears on the login screen, shouldn't have anything to do with the problem itself, right?</p>
  <p>I really don't know what else I could try to do and figure out what is causing this problem, so decided to ask for help and maybe find someone who already went through something similar.</p>
  <p>Thanks!</p>
  <p>PS: I'm using TS too, so apparently no problems with some possible undefined or whatever.</p>