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 ...@@ -72,6 +72,10 @@ import com.android.build.OutputFile
* ] * ]
*/ */
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native/react.gradle"
/** /**
......
...@@ -27,6 +27,11 @@ public class MainApplication extends Application implements ReactApplication { ...@@ -27,6 +27,11 @@ public class MainApplication extends Application implements ReactApplication {
new AMap3DPackage() new AMap3DPackage()
); );
} }
@Override
protected String getJSMainModuleName() {
return "index";
}
}; };
@Override @Override
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. --> <item name="colorPrimaryDark">#e0e0e0</item>
<item name="android:windowLightStatusBar">true</item>
</style> </style>
</resources> </resources>
import {AppRegistry} from 'react-native'
import App from './src/app'
AppRegistry.registerComponent('RNAMap3D', () => App)
This diff is collapsed.
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
"dependencies": { "dependencies": {
"prop-types": "^15.6.0", "prop-types": "^15.6.0",
"react": "16.0.0-beta.5", "react": "16.0.0-beta.5",
"react-native": "^0.49.1", "react-native": "^0.49.3",
"react-native-amap3d": "^0.7.3", "react-native-amap3d": "^0.7.3",
"react-navigation": "^1.0.0-beta.12" "react-navigation": "^1.0.0-beta.15"
}, },
"devDependencies": { "devDependencies": {
"babel-preset-react-native": "2.1.0" "babel-preset-react-native": "^4.0.0"
}, },
"presets": [ "presets": [
"react-native" "react-native"
......
...@@ -2,7 +2,6 @@ import React, {Component} from 'react' ...@@ -2,7 +2,6 @@ import React, {Component} from 'react'
import { import {
Platform, Platform,
ScrollView, ScrollView,
StatusBar,
StyleSheet, StyleSheet,
Text, Text,
TouchableHighlight, TouchableHighlight,
...@@ -30,7 +29,6 @@ export default class Examples extends Component { ...@@ -30,7 +29,6 @@ export default class Examples extends Component {
render() { render() {
return <ScrollView style={styles.scrollView} contentContainerStyle={styles.container}> return <ScrollView style={styles.scrollView} contentContainerStyle={styles.container}>
<StatusBar barStyle='dark-content' backgroundColor='#e0e0e0'/>
<View style={styles.group}> <View style={styles.group}>
{this._renderItem('地图模式', 'MapTypes')} {this._renderItem('地图模式', 'MapTypes')}
<View style={styles.separator}/> <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