Skip to content

getMetroAndroidAssetsResolutionFix() applicable to other targets (not just Android) #15

@alxroyer

Description

@alxroyer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions