Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): import defaultAssetExts #236

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

huextrat
Copy link
Contributor

A quick update on documentation about metro resolver assetExts

Most projects need the default metro extensions, so I think it's useful to indicate this in the documentation.

There are many ways to do it, I let you decide what's your favorite one

Copy link
Member

@hannojg hannojg left a comment

Choose a reason for hiding this comment

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

Good catch, can we use it from the defaultConfig var?

@@ -100,6 +100,9 @@ You'll likely import 3D related files when using react-native-filament. To make

```js
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const defaultAssetExts = require("metro-config/src/defaults/defaults").assetExts;
Copy link
Member

Choose a reason for hiding this comment

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

I think expo uses a different import for this? So maybe its better to take the value from the default config?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how Expo handles it, I've made the update to take value from default config,

@huextrat huextrat requested a review from hannojg July 17, 2024 17:00
@hannojg hannojg merged commit d8a3fde into margelo:main Jul 17, 2024
1 check 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