Skip to content

Commit

Permalink
稳定版测试完成
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYaodong committed Jun 29, 2017
1 parent 4be298c commit 6297391
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,25 @@ subtitle: 树形控件
---

## 使用
使用本组件时要同时添加图标库并链接
先执行
npm install react-native-vector-icons --save
react-native link
然后
react-native run-android
或 react-native run-ios

```jsx
<Tree treeData={[]}/>
<TreeSelect treeData={[]} defaultValue={[]}/>
```

## 运行示例
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
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{
"name": "react-native-tree",
"version": "1.0.0",
"version": "1.1.0",
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"rc-dialog": "^6.5.10",
"react": "^15.4.0",
"react-native": "^0.41.2",
"react-native-vector-icons": "^4.2.0",
"rmc-picker": "^3.10.7"
"react-native-vector-icons": "^4.2.0"
},
"description": "[![NPM](https://nodei.co/npm/react-native-router-flux.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/react-native-router-flux/) \r Router for React Native based on new React Native Navigation API.",
"description": "modify Dimensions bug",
"main": "index.js",
"devDependencies": {},
"devDependencies": {
"@types/react": "~0.14.41",
"@types/react-native": "~0.29.36",
"react": "^15.5.0",
"react-native": "^0.41.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/AdamRobertHall/react-native-tree.git"
},
"keywords": [
"react-native-tree",
"tree"
"tree",
"tree-select"
],
"author": "AdamRobertHall",
"license": "ISC",
Expand Down
3 changes: 2 additions & 1 deletion src/Tree.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, { PropTypes } from 'react';
import {ScrollView, View, Text, TouchableOpacity } from 'react-native';
import {ScrollView, View, Text, TouchableOpacity, Dimensions } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import MyUtils from './MyUtils'

const ScreenHeight = Dimensions.get('window').height;
class Tree extends React.Component {
constructor(props) {
super(props);
Expand Down

0 comments on commit 6297391

Please sign in to comment.