# 安装
# 安装依赖库
在安装react-native-maui
之前,请确保项目中已经安装并配置好了react-native-maui
所依赖的库:
npm install react-native-reanimated react-native-gesture-handler react-native-svg
npx pod-install
在babel.config.js中添加:
plugins: [
'react-native-reanimated/plugin'
]
如果遇到问题或者需要更加详细的配置文件可查看:
- react-native-reanimated (opens new window)
- react-native-gesture-handler (opens new window)
- react-native-svg (opens new window)
# 所需版本
名称 | 所需最低版本 |
---|---|
react-native-reanimated | >= v2.0.0 |
react-native-gesture-handler | >= v2.0.0 |
react-native-svg | >= v10.0.0 |
# 安装react-native-maui
npm install react-native-maui