shoutem/ui

Unrecognized font family 'Rubik-Regular' font.

ppanthony opened this issue · 5 comments

react-native-cli: 2.0.1
react-native: 0.60.4

"@shoutem/ui": "^1.0.1",

Fresh install, fresh project -

I get Unrecognized font family 'Rubik-Regular'. This seems to be a recurrent problem, I am not using Expo. linking didn't seem to resolve the project. Do we need to configure the fonts manually for both android / ios?

I'm facing the same problem trying to work with reason-react-native. I'm using Expo.

Is there any solution? Can I monkey-patch the fonts?

I was able to solve the issue after loading the fonts required using Font.loadAsync as showcased in https://github.com/shoutem/ui/blob/develop/examples/create-react-native-app/App.js.

I also cleaned up package-lock.json and node_modules and did a re-install using npm install just in case.

Can we close this isse as solved?

From my perspective I guess so. The solution works, whether there needs to be a pull request to resolve for everyone rather than a case by case solution on a fresh checkout of the project is up for debate.

The issue should remain open as a proposed solution works only for Expo, but the error happens without Expo for me.