gpt4 book ai didi

react-native - 类型错误 : undefined is not an object (evaluating ExpoFontLoader. loadAsync)

转载 作者:行者123 更新时间:2023-12-04 05:14:50 25 4
gpt4 key购买 nike

import React, { Component } from 'react';
import {
View,
TextInput,
} from 'react-native';
import Icons from 'react-native-vector-icons/FontAwesome';

class EmployeeFrom extends Component {
render() {
return (
<View>
<View>
<Icons name="user" size={28}
style={styles.InputIcons}
/>
<TextInput style={styles.textInput}
placeholder="Name"
placeholderTextColor="black"
underlineColorAndroid="rgba(0,0,0,0)"
/>
</View>
</View>
);
}
}

我从 react-native-vector-icons 导入了矢量图标,但仍然出现错误,请任何人帮助我

最佳答案

我有同样的问题。

帮助我调整了世博会的版本和版本。

它是:

package.json

"dependencies": {
"expo": "^30.0.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.
}

app.json
"expo": {
"sdkVersion": "29.0.0",
}

它变成了:

package.json
"dependencies": {
"expo": "^30.0.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.
}

app.json
"expo": {
"sdkVersion": "30.0.0",
}

关于react-native - 类型错误 : undefined is not an object (evaluating ExpoFontLoader. loadAsync),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52343861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com