| 12345678910111213141516171819202122232425262728293031 |
- /*
- * A smart AMap Library for react-native apps
- * https://github.com/react-native-component/react-native-smart-amap/
- * Released under the MIT license
- * Copyright (c) 2016 react-native-component <moonsunfall@aliyun.com>
- */
- import {
- Platform
- } from 'react-native';
- import AndroidAMap, {AMapUtilityAndroid, AMapSearchAndroid} from './AMap-android';
- import IOSAMap, {AMapUtilityIOS, AMapSearchIOS} from './AMap-ios';
- let AMap;
- let AMapUtility;
- let AMapSearch;
- if(Platform.OS == 'ios') {
- AMap = IOSAMap;
- AMapUtility = AMapUtilityIOS;
- AMapSearch = AMapSearchIOS;
- }
- else {
- AMap = AndroidAMap;
- AMapUtility = AMapUtilityAndroid;
- AMapSearch = AMapSearchAndroid;
- }
- export default AMap;
- export {AMapUtility, AMapSearch};
|