expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
358 stars 106 forks source link

Android crashes but shown no error #395

Open dejtor opened 1 year ago

dejtor commented 1 year ago

Summary

We are using snack-sdk with appetize.io to allow a preview of the code on a website. When using Android preview, the app crashes but shows no logs or problems. The code is problematic, but I would like to get some errors so we can show them.

What platform(s) does this occur on?

Android

SDK Version

v44,v46,v47

Reproducible demo or steps to reproduce from a blank project

import { View, Image } from 'react-native';

export default function App() {
  return ( 
    <View>
    <Image style={{height:'100px'}} source={{uri: "https://www.cdm.me/wp-content/uploads/2023/02/viber_image_2023-02-27_09-48-31-373-734x556.jpg"}}/>
    </View>
  );
}

If we remove "style={{height:'100px'}}" it won't crash.