ui icon indicating copy to clipboard operation
ui copied to clipboard

Unrecognized font family 'Rubik-Regular' font.

Open ppanthony opened this issue 6 years ago • 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?

ppanthony avatar Aug 07 '19 09:08 ppanthony

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?

davesnx avatar Sep 06 '19 14:09 davesnx

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.

srijanshetty avatar Sep 17 '19 06:09 srijanshetty

Can we close this isse as solved?

srijanshetty avatar Sep 24 '19 09:09 srijanshetty

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.

ppanthony avatar Sep 24 '19 14:09 ppanthony

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

pliashkou avatar Nov 02 '19 17:11 pliashkou