react-native-monorepo-tools icon indicating copy to clipboard operation
react-native-monorepo-tools copied to clipboard

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

Open alxroyer opened this issue 2 years ago • 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.

alxroyer avatar Aug 26 '22 08:08 alxroyer