-
Notifications
You must be signed in to change notification settings - Fork 959
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
Hot to configure metro for EAS builds? #1568
Comments
Hey @acrdlph My
When I
|
Unfortunately no solution yet -- I also tried using the 'old' / un-optimized way of passing the mapping as This is forcing me to move away from UI Kitten, because without custom mapping I'd rather build the components myself. |
The weird thing is that on IOS the mapping work. And on the android dev client too (when I build with |
@acrdlph FYI : If I use
with
I don't have any crash. |
Yes for me, the metro config approach works in the development client - just not in production Play / App Store builds. However @GautierT, you are also right that the regular customMapping approach works even in production -- it was just an issue with my particular |
Was having this issue w/ play & app store builds also.
|
@dubchoi Hey man, sorry for bothering you but i was wondering that you added this script to your package.json and then what is the next step? i dont pick it up |
@poinch No worries, you just have to add the line with the correct path to your mapping file, and the next build through EAS will automatically run the script. |
@dubchoi thank you big time! Great find and very cool EAS Build extension. I needed that for a Sentry issue too! |
💬 Question
I am trying to use
@ui-kitten/metro-config
with the new EAS build flow from Expo.Everything works well when I build an app for development and serve it through a development client. However, when I build a standalone version, the custom mapping I defined through my
mapping.json
does not get applied.The documentation linked above says that one would have to run a CLI command before building in a CI environment:
ui-kitten bootstrap @eva-design/eva ./path-to/mapping.json
. But I can't figure out where to place this command so that it gets executed on EAS build servers at the right time. The CLI command is not available even after I install@ui-kitten/metro-config
in the project directory as a development dependency. I think the documentation isn't very clear on this.Here is a reproducible example: https://github.com/acrdlph/expo-mcve/tree/ui-kitten - in development builds (which depend on a dev client) the
h1
size is re-defined according to themapping.json
. In the preview and production profiles theh1
tag defaults back to its normal size.(I posted this question on StackOverflow, too, but no responses so far - hence turning to you here 🙏)
UI Kitten and Eva version
The text was updated successfully, but these errors were encountered: