Commit 5a07eb3a authored by Qiu Xiang's avatar Qiu Xiang
Browse files

添加基本示例

parent 1f632d25
Loading
Loading
Loading
Loading

example/app.js

deleted100644 → 0
+0 −9
Original line number Diff line number Diff line
import React, {Component} from 'react'
import {Text} from 'react-native'
import AMapView from 'react-native-amap3d'

export default class Example extends Component {
  render() {
    return <AMapView style={{flex: 1}}/>
  }
}
+1 −2
Original line number Diff line number Diff line
import React, {Component} from 'react'
import {AppRegistry} from 'react-native'
import App from './app'
import App from './src/app'
AppRegistry.registerComponent('Example', () => App)
+1 −2
Original line number Diff line number Diff line
import React, {Component} from 'react'
import {AppRegistry} from 'react-native'
import App from './app'
import App from './src/app'
AppRegistry.registerComponent('Example', () => App)
+23 −22
Original line number Diff line number Diff line
@@ -9,7 +9,8 @@
  "dependencies": {
    "react": "16.0.0-alpha.6",
    "react-native": "0.44.0",
    "react-native-amap3d": ".."
    "react-native-amap3d": "..",
    "react-navigation": "^1.0.0-beta.11"
  },
  "devDependencies": {
    "babel-jest": "20.0.3",

example/src/app.js

0 → 100644
+16 −0
Original line number Diff line number Diff line
import {StackNavigator} from 'react-navigation'
import Examples from './examples'
import MapTypes from './map-types'
import Layers from './layers'
import Indoor from './indoor'
import Controls from './controls'
import Gestures from './gestures'

export default StackNavigator({
  Examples: {screen: Examples},
  MapTypes: {screen: MapTypes},
  Layers: {screen: Layers},
  Indoor: {screen: Indoor},
  Controls: {screen: Controls},
  Gestures: {screen: Gestures},
})
Loading