mmazzarolo/react-native-monorepo-tools

`getMetroAndroidAssetsResolutionFix()` applicable to other targets (not just Android)

Opened this issue · 0 comments

While following https://mmazzarolo.com/blog/2021-09-11-running-react-native-everywhere/, I faced the same "Android assets resolution bug" with my react-native-windows app: logo not displayed above the hello message.

I tried to apply the getMetroAndroidAssetsResolutionFix() to fix it, and it worked!

Indeed, when I read through metro#290, it seems that the problem is not specific to Android, but is rather due to monorepo configurations.

This is issue in order to:

  1. Share the fact that this fix can be used for other targets than Android,
  2. Suggest that "Android" could be removed from the name of the function.