Common.js 565 B

1234567891011121314151617181920212223242526272829303132
  1. import {
  2. Platform,
  3. } from 'react-native';
  4. let Global = {
  5. airspaceType: {
  6. circle: 1,
  7. line: 2,
  8. polygon: 3
  9. },
  10. pointTypes: {
  11. nav: 1, // 导航点
  12. line: 2, // 航线
  13. point: 3 // 普通航路点
  14. }
  15. }
  16. Global.amapLineWidth = 3;
  17. Global.amapStrokeColor = Platform.select({
  18. ios: () => 0x58A8F5,
  19. android: () => "#58A8F5"
  20. })();
  21. Global.amapFillColor = Platform.select({
  22. ios: () => 0xF4F9FC66,
  23. android: () => "#1158A8F5" //ARGB in Android
  24. })();
  25. module.exports = Global;