React native 是否可以在React native with Expo中使用UI工具包?
我正在尝试加载一个UI工具包,以跳过自己构建UI组件的整个过程。(尽管如此,是的,我是个新来的土生土长的人) 但在执行React native 是否可以在React native with Expo中使用UI工具包?,react-native,expo,React Native,Expo,我正在尝试加载一个UI工具包,以跳过自己构建UI组件的整个过程。(尽管如此,是的,我是个新来的土生土长的人) 但在执行npm安装并导入它之后,问题来了: 从“galio framework”导入{View,TextInput,Button}我得到一个: Could not find a declaration file for module 'galio-framework'. '/Users/user/FirstApp/node_modules/galio-framework/src/inde
npm安装并导入它之后,问题来了:
从“galio framework”导入{View,TextInput,Button}
我得到一个:
Could not find a declaration file for module 'galio-framework'. '/Users/user/FirstApp/node_modules/galio-framework/src/index.js' implicitly has an 'any' type.
Try `npm install @types/galio-framework` if it exists or add a new declaration (.d.ts) file containing `declare module 'galio-framework';`
我曾尝试npm安装@types/galio framework
,但没有找到
在模拟器中,它告诉我检查App
的渲染方法
我如何运行它?甚至可以通过世博会来运行它吗
mypackage.json
:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"@eva-design/eva": "^1.2.0",
"expo": "^35.0.0",
"galio-framework": "^0.6.1",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
"react-native-ui-kitten": "^4.2.0",
"react-native-web": "^0.11.7"
},
"devDependencies": {
"babel-preset-expo": "^7.0.0"
},
"private": true
}
提前谢谢。发布你的包.json
@dglozano有了,编辑好了。