React Native:为什么此屏幕在 snack.expo.io 中呈现的效果与在我的设备上呈现的不同?

React Native: Why is this screen rendering differently in snack.expo.io than on my device?

我的 React Native 应用程序中有这个屏幕:https://snack.expo.io/@gkeenley/playful-blueberries

它在 snack ^^ for web(默认模拟器)中呈现良好,但对于 Android 图像高度为零并且不显示。

有谁知道我该如何调试它?

更新

如果我删除 icon 样式上的 flex: 1,它会修复它。但我不明白为什么这会有所不同,以及为什么你需要为 Android 而不是 web.

这样做

document中有关于"Flex Dimensions"的说明和注意事项

A component can only expand to fill available space if its parent has dimensions greater than 0. If a parent does not have either a fixed width and height or flex, the parent will have dimensions of 0 and the flex children will not be visible.