Commit 9b102854 authored by 7c00's avatar 7c00

Update example dependencies

parent e0131865
[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
[include]
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/
[options]
emoji=true
module.system=haste
munge_underscores=true
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-9]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
unsafe.enable_getters_and_setters=true
[version]
^0.49.1
......@@ -72,6 +72,10 @@ import com.android.build.OutputFile
* ]
*/
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
/**
......
......@@ -24,9 +24,14 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new AMap3DPackage()
new AMap3DPackage()
);
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
......
......@@ -2,7 +2,8 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimaryDark">#e0e0e0</item>
<item name="android:windowLightStatusBar">true</item>
</style>
</resources>
import {AppRegistry} from 'react-native'
import App from './src/app'
AppRegistry.registerComponent('RNAMap3D', () => App)
......@@ -381,9 +381,10 @@
}
},
"babel-plugin-react-transform": {
"version": "2.0.2",
"resolved": "http://registry.npm.taobao.org/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.2.tgz",
"integrity": "sha1-UVu/qZaJOYEULZCx+bFjXeKZUQk=",
"version": "3.0.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-react-transform/download/babel-plugin-react-transform-3.0.0.tgz",
"integrity": "sha1-QC8lE3t7tm6bVOrXVVffvH7KqnQ=",
"dev": true,
"requires": {
"lodash": "4.17.4"
}
......@@ -398,6 +399,12 @@
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-class-properties/download/babel-plugin-syntax-class-properties-6.13.0.tgz",
"integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94="
},
"babel-plugin-syntax-dynamic-import": {
"version": "6.18.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-dynamic-import/download/babel-plugin-syntax-dynamic-import-6.18.0.tgz",
"integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=",
"dev": true
},
"babel-plugin-syntax-flow": {
"version": "6.18.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-syntax-flow/download/babel-plugin-syntax-flow-6.18.0.tgz",
......@@ -439,6 +446,15 @@
"babel-template": "6.26.0"
}
},
"babel-plugin-transform-define": {
"version": "1.3.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-define/download/babel-plugin-transform-define-1.3.0.tgz",
"integrity": "sha1-lMX5RZyBDHOMx8UMvUSjGCnW8xk=",
"requires": {
"lodash": "4.17.4",
"traverse": "0.6.6"
}
},
"babel-plugin-transform-es2015-arrow-functions": {
"version": "6.22.0",
"resolved": "http://registry.npm.taobao.org/babel-plugin-transform-es2015-arrow-functions/download/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
......@@ -742,14 +758,16 @@
}
},
"babel-preset-react-native": {
"version": "2.1.0",
"resolved": "http://registry.npm.taobao.org/babel-preset-react-native/download/babel-preset-react-native-2.1.0.tgz",
"integrity": "sha1-kBPr2C2hyIECv1iIEP9Z4gnKK4o=",
"version": "4.0.0",
"resolved": "http://registry.npm.taobao.org/babel-preset-react-native/download/babel-preset-react-native-4.0.0.tgz",
"integrity": "sha1-PfgN0zpFOIjN0zvbhyJNF6XXOVk=",
"dev": true,
"requires": {
"babel-plugin-check-es2015-constants": "6.22.0",
"babel-plugin-react-transform": "2.0.2",
"babel-plugin-react-transform": "3.0.0",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-syntax-class-properties": "6.13.0",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-syntax-flow": "6.18.0",
"babel-plugin-syntax-jsx": "6.18.0",
"babel-plugin-syntax-trailing-function-commas": "6.22.0",
......@@ -774,6 +792,7 @@
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-regenerator": "6.26.0",
"babel-template": "6.26.0",
"react-transform-hmr": "1.0.4"
}
},
......@@ -2060,7 +2079,7 @@
"integrity": "sha1-ndLyrXZdyrH/BEO0kUQqILoifck=",
"requires": {
"ansi-escapes": "3.0.0",
"chalk": "2.1.0",
"chalk": "2.2.0",
"cli-cursor": "2.1.0",
"cli-width": "2.2.0",
"external-editor": "2.0.5",
......@@ -2089,13 +2108,13 @@
}
},
"chalk": {
"version": "2.1.0",
"resolved": "http://registry.npm.taobao.org/chalk/download/chalk-2.1.0.tgz",
"integrity": "sha1-rFvs8U+iG5nGySynp9fP1bF+dD4=",
"version": "2.2.0",
"resolved": "http://registry.npm.taobao.org/chalk/download/chalk-2.2.0.tgz",
"integrity": "sha1-R3s78vm4/Vyp5Cl0fjf3JO568kA=",
"requires": {
"ansi-styles": "3.2.0",
"escape-string-regexp": "1.0.5",
"supports-color": "4.4.0"
"supports-color": "4.5.0"
}
},
"strip-ansi": {
......@@ -2107,9 +2126,9 @@
}
},
"supports-color": {
"version": "4.4.0",
"resolved": "http://registry.npm.taobao.org/supports-color/download/supports-color-4.4.0.tgz",
"integrity": "sha1-iD992rwWUUKyphQn8zUt7RldGj4=",
"version": "4.5.0",
"resolved": "http://registry.npm.taobao.org/supports-color/download/supports-color-4.5.0.tgz",
"integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=",
"requires": {
"has-flag": "2.0.0"
}
......@@ -2683,6 +2702,50 @@
"xpipe": "1.0.5"
},
"dependencies": {
"babel-plugin-react-transform": {
"version": "2.0.2",
"resolved": "http://registry.npm.taobao.org/babel-plugin-react-transform/download/babel-plugin-react-transform-2.0.2.tgz",
"integrity": "sha1-UVu/qZaJOYEULZCx+bFjXeKZUQk=",
"requires": {
"lodash": "4.17.4"
}
},
"babel-preset-react-native": {
"version": "2.1.0",
"resolved": "http://registry.npm.taobao.org/babel-preset-react-native/download/babel-preset-react-native-2.1.0.tgz",
"integrity": "sha1-kBPr2C2hyIECv1iIEP9Z4gnKK4o=",
"requires": {
"babel-plugin-check-es2015-constants": "6.22.0",
"babel-plugin-react-transform": "2.0.2",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-syntax-class-properties": "6.13.0",
"babel-plugin-syntax-flow": "6.18.0",
"babel-plugin-syntax-jsx": "6.18.0",
"babel-plugin-syntax-trailing-function-commas": "6.22.0",
"babel-plugin-transform-class-properties": "6.24.1",
"babel-plugin-transform-es2015-arrow-functions": "6.22.0",
"babel-plugin-transform-es2015-block-scoping": "6.26.0",
"babel-plugin-transform-es2015-classes": "6.24.1",
"babel-plugin-transform-es2015-computed-properties": "6.24.1",
"babel-plugin-transform-es2015-destructuring": "6.23.0",
"babel-plugin-transform-es2015-for-of": "6.23.0",
"babel-plugin-transform-es2015-function-name": "6.24.1",
"babel-plugin-transform-es2015-literals": "6.22.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.0",
"babel-plugin-transform-es2015-parameters": "6.24.1",
"babel-plugin-transform-es2015-shorthand-properties": "6.24.1",
"babel-plugin-transform-es2015-spread": "6.22.0",
"babel-plugin-transform-es2015-template-literals": "6.22.0",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-plugin-transform-react-display-name": "6.25.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-regenerator": "6.26.0",
"react-transform-hmr": "1.0.4"
}
},
"core-js": {
"version": "2.5.1",
"resolved": "http://registry.npm.taobao.org/core-js/download/core-js-2.5.1.tgz",
......@@ -3041,13 +3104,6 @@
"integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=",
"requires": {
"isarray": "0.0.1"
},
"dependencies": {
"isarray": {
"version": "0.0.1",
"resolved": "http://registry.npm.taobao.org/isarray/download/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
}
}
},
"path-type": {
......@@ -3306,9 +3362,9 @@
}
},
"react-native": {
"version": "0.49.1",
"resolved": "http://registry.npm.taobao.org/react-native/download/react-native-0.49.1.tgz",
"integrity": "sha1-zxFXXYI1JdZL8xNg1/ZLj7zRHBo=",
"version": "0.49.3",
"resolved": "http://registry.npm.taobao.org/react-native/download/react-native-0.49.3.tgz",
"integrity": "sha1-DKRZ7kn5xZ6DJrLO2eNMWTM6LyY=",
"requires": {
"absolute-path": "0.0.0",
"art": "0.10.1",
......@@ -3397,24 +3453,25 @@
}
},
"react-native-tab-view": {
"version": "0.0.67",
"resolved": "http://registry.npm.taobao.org/react-native-tab-view/download/react-native-tab-view-0.0.67.tgz",
"integrity": "sha1-zdFG/l5dS6/2yJ8tXQsV+iPbOdA=",
"version": "0.0.69",
"resolved": "http://registry.npm.taobao.org/react-native-tab-view/download/react-native-tab-view-0.0.69.tgz",
"integrity": "sha1-9S1DVKmKOC8Q61/PYdtSFskdx+c=",
"requires": {
"prop-types": "15.6.0"
}
},
"react-navigation": {
"version": "1.0.0-beta.12",
"resolved": "http://registry.npm.taobao.org/react-navigation/download/react-navigation-1.0.0-beta.12.tgz",
"integrity": "sha1-zw8E/7+f7+QfXFodq5IQa0iinwo=",
"version": "1.0.0-beta.15",
"resolved": "http://registry.npm.taobao.org/react-navigation/download/react-navigation-1.0.0-beta.15.tgz",
"integrity": "sha1-s9Cc5SJDXKxNQKxS32TW3qJd9wU=",
"requires": {
"babel-plugin-transform-define": "1.3.0",
"clamp": "1.0.1",
"hoist-non-react-statics": "2.3.1",
"path-to-regexp": "1.7.0",
"prop-types": "15.6.0",
"react-native-drawer-layout-polyfill": "1.3.2",
"react-native-tab-view": "0.0.67"
"react-native-tab-view": "0.0.69"
}
},
"react-proxy": {
......@@ -4117,6 +4174,11 @@
"punycode": "1.4.1"
}
},
"traverse": {
"version": "0.6.6",
"resolved": "http://registry.npm.taobao.org/traverse/download/traverse-0.6.6.tgz",
"integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc="
},
"trim-right": {
"version": "1.0.1",
"resolved": "http://registry.npm.taobao.org/trim-right/download/trim-right-1.0.1.tgz",
......
......@@ -9,12 +9,12 @@
"dependencies": {
"prop-types": "^15.6.0",
"react": "16.0.0-beta.5",
"react-native": "^0.49.1",
"react-native": "^0.49.3",
"react-native-amap3d": "^0.7.3",
"react-navigation": "^1.0.0-beta.12"
"react-navigation": "^1.0.0-beta.15"
},
"devDependencies": {
"babel-preset-react-native": "2.1.0"
"babel-preset-react-native": "^4.0.0"
},
"presets": [
"react-native"
......
......@@ -2,7 +2,6 @@ import React, {Component} from 'react'
import {
Platform,
ScrollView,
StatusBar,
StyleSheet,
Text,
TouchableHighlight,
......@@ -30,7 +29,6 @@ export default class Examples extends Component {
render() {
return <ScrollView style={styles.scrollView} contentContainerStyle={styles.container}>
<StatusBar barStyle='dark-content' backgroundColor='#e0e0e0'/>
<View style={styles.group}>
{this._renderItem('地图模式', 'MapTypes')}
<View style={styles.separator}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment