V
V
Vadim Dunkin2019-02-27 12:33:12
JavaScript
Vadim Dunkin, 2019-02-27 12:33:12

Why does a react-native application (native-base, Font.loadAsync) crash after loading a js build?

Hello!
The problem is this, there is an application on react-native, native-base is built into it!
Built on expo-cli , I
execute the
expo-start command
in the browser, a tab opens,
then I try to open the application through Expo App
and after configuring the build, an error occurs:

fontFamily "Roboto_medium" is not a system font and has not been loaded through Font.loadAsync.
- If you intended to use a system font, make sure you typed the name correctly and that it is supported by your device operating system.
- If this is a custom font, be sure to load it with Font.loadAsync.

Yes, I know that this can be solved through componentDidMount via the async Font.loadAsync function,
also I ran the react-native link command to make the link,
but even so it cannot load the font! What can be wrong? and how to make it load?
Why am I not doing via componentDidMount? Did the employee succeed without componentDidMount, or if he has ios loaded for him? do i have an android? so to fix this problem you need to do everything through componentDidMount?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question