-
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
Custom mapping isn't integrated when done through metro.config.js #1765
Comments
@Bertram25 I experienced similar behavior, but with expo. When running project locally everything is working fine, but when building project Is this metro issue related only to cases when running metro locally or it is also appears when building app binaries? |
this issue was resolved in this PR. It will be released with a 0.73 version |
Hello again, So we upgraded our project to react native 0.73 and checked that the community-cli is installed in the right version. (It seems your PR was applied on the 12.0 version and that react native 0.73 is provided with the version 12.3.0)
With the same adapted metro config, we still didn't have the message: So we added the following command on our (yarn) start script (in This is actually triggering the message (Successfully bootstrapped...) the first time, but then no more. We checked that and it seems to be ok, since our custom mapping hasn't changed between 2 calls, and that you are using a checksum to avoid generating the But then once starting the app on e.g.: Android using (
We tried to investigate where the generated.json file was used from (in the styled.js code and theme service) but couldn't conclude on anything specific. Do you know what we could be doing wrong? |
@zhenkaGo Maybe a more specific question would help: Can you give us some pointers on how best we could debug the fact that the Namely how and why |
Hi @Bertram25. sorry for taking so long to answer
I reckon this problem also was resolved in this PR but it wasn't released yet. |
We're struggling with the exact same issue. Any perspective on when the fix will be released? |
Hello, is there any update on the issue? |
Hey @zhenkaGo , sorry it's been a while on my end too. I tried your patch and unfortunately, it didn't work. On this repository, if I didn't do anything wrong, applying your patch doesn't solve the issue either. Cheers, |
Hi. @Bertram25. I've checked your mini app. If you still has this problem try one more patch. I don't why this problem still exist in RN. They had to solved them here.
|
@zhenkaGo hey, I know it's been a long time but I wanted to confirm adding this patch solve the issue (using patch-package) Fun fact, we found the same kind of issue in React 0.75 only for iOS and it seems the issue is gone on React 0.76. |
🐛 Bug Report
After the upgrade of React Native to 72.3, Metro to 0.76.7, and UI Kitten to 2.2.0, the following metro.config.js content doesn't integrate the custom mapping anymore.
The following was previously working with React Native 70.6, UI Kitten 2.1.1 and Metro 0.72.3
The bundle message:
success Successfully bootstrapped @eva-design/eva
is not displayed anymore as well.As a workaround, the command:
yarn ui-kitten bootstrap @eva-design/eva ./app/theme/customMapping.json
still worksWhen looking deeper and debugging locally, it appeared that the metro function injected into
reporter: { update: <method> }
is never run, and thus never runs the evabootstrapservice.run()
method which create the generate.json file used for theming.To Reproduce
Steps to reproduce the behavior:
Link to runnable example or repository (highly encouraged)
Minimal app with the bug reproduced: https://github.com/Bertram25/minimal-ui-kitten-app
UI Kitten and Eva version
Environment information
npx envinfo --preset react-native
The text was updated successfully, but these errors were encountered: