我使用了create-react-native-app my-project,但我想使用来自@expo/vector-icons的图标
代码
import { Ionicons} from '@expo/vector-icons';
export default function App(){
return <Ionicons name={Platform.OS === 'ios'?"ios-happy-outline":"md-happy"} size={100}/>}实际效果
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.预期结果
图标应该在我的用户界面上可见。
发布于 2022-10-07 08:19:02
您可以使用来自react-native-vector-icons的https://oblador.github.io/react-native-vector-icons/
https://stackoverflow.com/questions/70341341
复制相似问题