React native 如何在Expo上安装UI Kitten?
我试图在我的项目中使用UI Kitten,但不知道如何在Expo上安装UI KittenReact native 如何在Expo上安装UI Kitten?,react-native,expo,react-native-ui-kitten,React Native,Expo,React Native Ui Kitten,我试图在我的项目中使用UI Kitten,但不知道如何在Expo上安装UI Kitten expo install @ui-kitten/eva-icons @eva-design/eva @ui-kitten/components react-native-svg 错误: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! While resolving: undefined@
expo install @ui-kitten/eva-icons @eva-design/eva @ui-kitten/components react-native-svg
错误:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react-native-svg@12.1.0
npm ERR! node_modules/react-native-svg
npm ERR! react-native-svg@"12.1.0" from the root project
npm ERR! Could not resolve dependency:
npm ERR! peer react-native-svg@"^9.13.6" from @ui-kitten/components@5.1.0
npm ERR! node_modules/@ui-kitten/components
npm ERR! @ui-kitten/components@"*" from the root project
npm ERR! peer @ui-kitten/components@"5.1.0" from @ui-kitten/eva-icons@5.1.0
npm ERR! node_modules/@ui-kitten/eva-icons
npm ERR! @ui-kitten/eva-icons@"*" from the root project
错误中明确显示,
react native svg@“^9.13.6”
kitten UI正在使用上述版本,而您的项目正在使用12.1.0
使用kitten UI,您需要使用react native svg@“^9.13.6”
version.即使使用expo-install@ui-kitten/eva-icons@eva-design/eva@ui-kitten/components,我也会遇到同样的错误-svg@9.13.6