Closed fershibli closed 11 months ago
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. My guesses:
Another update: I did try to rename all the fonts without spaces or dashes, as described on this video tutorial. It didn't work, but I might try it on Linux once I get home. This looks like something really tricky...
I tried on Linux, but it didn't work neither... I'm convinced that this must be a conflict with react-native-vector-icons
. (OR I'm missing a step)
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 const FONTS = { ..., Platform.select({ ios: ""., android: "" })
as described on the previous video tutorial that I mentioned.
Good luck for you that are reading, I hope this helps you with your own issue.
Just to address that I added back react-ntive-splash-screen
to my project, since the issue that I had with TextInput was solved and it also solved the conflict with fonts.
TYSM @sunjaaa
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
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.