Skip to content

Commit

Permalink
部署
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangYaodong committed Jun 26, 2017
1 parent bb9191c commit 2d1d8af
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 793 deletions.
45 changes: 24 additions & 21 deletions Example/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"name": "TreeExample",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.45.1"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.0.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
}
"name": "TreeExample",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "^16.0.0-alpha.12",
"react-native": "^0.45.1",
"react-native-router-flux": "^4.0.0-alpha.4",
"react-native-side-menu": "^0.20.3",
"react-native-vector-icons": "^4.2.0"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.0.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Tree} from 'react-native-tree';
export default class TestTree extends Component {
constructor() {
super();
Expand All @@ -10,7 +11,7 @@ export default class TestTree extends Component {
render() {
let menu = <View style={{backgroundColor: '#F5F5F9'}}>
<ScrollView style={styles.tree}>
<TreeView
<Tree
showLine
defaultExpandRoot
defaultSelectedKeys = {this.state.selectedKeys}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Example/scr/globals.js → Example/src/globals.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { PropTypes, Component } from 'react';
import { Router, Scene, TabBar, Actions } from 'react-native-router-flux';
import {
AppRegistry, Text, View, ScrollView, TouchableHighlight, TouchableOpacity
AppRegistry, Text, View, ScrollView, TouchableHighlight, TouchableOpacity, Dimensions
} from 'react-native';
const SideMenu = require('react-native-side-menu');
import Icon from 'react-native-vector-icons/FontAwesome';
Expand Down
2 changes: 1 addition & 1 deletion Example/scr/index.js → Example/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './globals'
// 路由
import Router from './router';

export default function native(platform) {
export default function TreeExample(platform) {
// 将平台设为全局变量
global.PLATFORM = platform;
AppRegistry.registerComponent('TreeExample', () => Router);
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "tree",
"displayName": "tree"
"name": "react-native-tree",
"displayName": "react-native-tree"
}
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"name": "tree",
"version": "1.0.0",
"description": "react native tree component",
"main": "index.js",
"name": "react-native-tree",
"version": "1.0.1",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "^16.0.0-alpha.12",
"react-native": "^0.45.1",
"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.",
"main": "index.js",
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/AdamRobertHall/react-native-tree.git"
},
"keywords": [
"Tree",
"TreeSelect",
"TreeView"
"react-native-tree",
"tree"
],
"author": "AdamRobertHall",
"license": "ISC",
"bugs": {
"url": "https://github.com/AdamRobertHall/react-native-tree/issues"
},
"homepage": "https://github.com/AdamRobertHall/react-native-tree#readme",
"dependencies": {
"react": "^15.6.1",
"react-native": "^0.45.1",
"react-native-vector-icons": "^4.2.0"
}
"homepage": "https://github.com/AdamRobertHall/react-native-tree#readme"
}
Loading

0 comments on commit 2d1d8af

Please sign in to comment.