-
Notifications
You must be signed in to change notification settings - Fork 52
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
It works on iOS, but not on Android #60
Comments
Just to highlight something that may get behind during the reading of my previous text: I tried to replace all the fonts with ttf, but it still didn't work on Android, but it worked on iOS.
|
Another update: |
I tried on Linux, but it didn't work neither... I'm convinced that this must be a conflict with |
Fixed by removing react-native-splash-screen from the project and making the whole process again for adding fonts from scratch, but using a different name scheme for each platform using Good luck for you that are reading, I hope this helps you with your own issue. |
Just to address that I added back |
Description
The project was already running on both iOS and Android without errors.
I followed the steps of a Youtube tutorial and checked on many different sources, including this repository’s
README.md
.One of the steps, for making it run on both systems (Android and iOS), consisted in naming the font files with their fullnames (for example: "GT Walsheim Bold.otf")
Then it worked on iOS, through Xcode Simulator. But it didn't work on Android Studio's Device.
Am I missing some kind of configuration on Android side?
Environment
Runtime version: 17.0.6+0-17.0.6b829.9-10027231 x86_64.
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
react-native.config.js
link-assets-manifest.json
Attempts
.gradlew clean
(inside android folder)Observations
Android Studio presents TWO different assets/fonts folders on the same hierarchy: one with my custom fonts, the other with other fonts that I didn't knew I had, but when I select it the top bar says "ReactNativeVectorIcons>fonts" (as shown bellow). Is it possible that they are conflicting?
If there's any other information that you need from my part, please ask away and I'll provide it asap.
The text was updated successfully, but these errors were encountered: