-
Notifications
You must be signed in to change notification settings - Fork 957
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 not working #1009
Comments
@harryy2510 any chance |
I had the same issue, I solved it by following this guide https://akveo.github.io/react-native-ui-kitten/docs/guides/improving-performance#improving-performance |
@gabrielepmattia @harryy2510 Sorry for the late reply. Just tried it in a fresh project initialized with template and couldn't reproduce. Could you please share a reproducible demo or describe the steps on how did you initialize? |
Closing this since there is no problem with this 🤷♂️ |
@artyorsh I created from scratch a new project, I copied your
I attach here the screenshots, again only pre-building the mapping makes the button turn pink. I also get type errors in the custom mapping and in the button icon (attached screenshot). Thank you for your time P.S.: Moreover the Heart icon in the button is missing. |
@artyorsh But not working with Custom Component Mapping |
@kakavip yep, thanks for the details. I fixed that in d120d5d. This is an upcoming change anyway, but if you need to use it currently, this may achieved by modifying props like the migration guide says. Sorry for such type of issue. @gabrielepmattia thanks for the details 👍The commit above also gives some notes on this. The problem is you use metro configuration which creates a styles during the build time. const evaConfig = {
evaPackage: '@eva-design/eva',
customMappingPath: './path-to/custom-mapping.json',
}; Maake sure to restart the bundler afterwards. |
Perfect, now it's clear but |
That is what I did 🙌 |
🐛 Bug Report
Passing a custom mapping like this doesn't work for some reason
But passing it like this works
Custom mapping is the same for both scenarios
UI Kitten and Eva version
Environment information
The text was updated successfully, but these errors were encountered: