category: Components type: Data Display title: Tree TreeSelect subtitle: 树形控件
使用
- 使用本组件时要同时添加图标库并链接
- 先执行
- npm install react-native-vector-icons --save
- npm install react-native-tree --save
- react-native link
- 然后
- react-native run-android
- 或 react-native run-ios
<Tree =/><TreeSelect = =/>
运行示例
-
git clone https://github.com/AdamRobertHall/react-native-tree.git
-
进入工程目录
-
cd Example
-
npm install
-
react-native link
-
react-native run-android
-
或 react-native run-ios