我从我的一个旧项目中复制了我的代码,所以它应该能够工作。然而,我认为当我创建新项目时,它意外地更新了版本,导致它彻底出错。import React, {useState} from 'react';import * as Font from 'expo-font';
import { AppLoading} from 'expo-a
我正在开发Expo Web上的React Native应用程序。我正在尝试加载自定义字体,按照世博会文档中关于加载自定义字体的说明。但是我得到了错误Unexpected type number expected a URI string or Asset from expo-asset。Merriweather.ttf') this.setState({ fontLoaded: true });
我使用博览字体从外部导入两种字体。我使用了require函数来导入它们。我还从世博会进口了博览字体和AppLoading .但是我说fontFamily "open-sans-bold" is not a system font and has not been loadedthrough Font.loadAsync.时出错了import * as Font from
当使用本机基时,我得到了错误:You started loading 'Roboto_medium', but used it before it finished loading。export default class App extends React.Component {
await Expo.Font.loadAsyncRoboto.ttf'),
'Roboto_medium': require('