import React from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, Image, TouchableOpacity, View, DeviceEventEmitter } from 'react-native'; import FastImage from 'react-native-fast-image'; import { onePx, px2dp } from '../../utils'; interface Props { } interface State { } export default class MapTools extends React.Component { constructor(props: Props) { super(props); }; public readonly state: Readonly = { }; focusCurrentLocation() { DeviceEventEmitter.emit('focus-current-location') }; render() { return ( [ 定位 ] ) } } const styles = StyleSheet.create({ toolBtn: { width: px2dp(36), height: px2dp(48), backgroundColor: 'rgba(255,255,255, 0.88)', position: 'absolute', bottom: px2dp(120), left: px2dp(13), zIndex: 999, elevation: 8, borderRadius: px2dp(4), // borderWidth: onePx, // borderColor: '#eee' }, toolBtnContent: { width: px2dp(36), height: px2dp(46), justifyContent: 'center', alignItems: 'center', paddingTop: px2dp(3) } })