Skip to content

Conversation

@vonovak
Copy link
Collaborator

@vonovak vonovak commented May 26, 2025

why

This PR increases strictness of checks of expo modules upon the globalThis.expo.

Also, it removes deep import of react-native/Libraries/Image/resolveAssetSource from react native because it will soon not be allowed: react-native-community/discussions-and-proposals#894

There are no changes in the runtime behavior.

test plan

Built the common package locally and installed it into a fresh expo go project. Rendering of icons worked.

that being said, I had to do some workarounds to get pnpm install to finish successfully:

 ERR_PNPM_FETCH_401  GET https://npm.fontawesome.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz: Unauthorized - 401

No authorization header was set for the request.

Maybe I just missed some docs but at the first sight, this seems to be a hurdle for external contributors.

loadAsync: (fontFamilyAlias: string, fileUri: string) => Promise<void>;
};
ExpoAsset?: ExpoAssetModule;
ExpoFontLoader?: ExpoFontLoaderModule;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should both of these be optional? I get a typescript error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "types" check in CI is passing. So I believe this is correct as it is.

@johnf
Copy link
Collaborator

johnf commented Jun 14, 2025

@vonovak Apologies for the delay.

One comment on a typescript error

the fotawesome issue should be gone now. Was a bad commit by me

@johnf johnf merged commit 041695b into oblador:master Jun 14, 2025
4 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants