-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
33 lines (28 loc) · 892 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import { processColor, requireNativeComponent } from 'react-native';
const AMap = requireNativeComponent('AMapView', null);
const Marker = requireNativeComponent('Marker', null);
export default class App extends Component{
state = {
a: false
};
render() {
return (
<AMap
ref={e => this.AMap = e}
style={{ flex: 1 }}
locationEnabled={false}
locationRepresentationStyle={{ fillColor: processColor('red'), lineWidth: 6, showsAccuracyRing: true, enablePulseAnnimation: true, image: 'https://avatars3.githubusercontent.com/u/19301145?s=460&v=4' }}
trafficVisible={false}
indoorMapVisible={false}
>
<Marker title="你好" subTitle="我是默认标注" />
</AMap>
)
}
}