vbea hace 3 años
padre
commit
16b520c6b0

+ 0 - 54
Strides-APP/node_modules/vbe-cluster-map/index.d.ts

@@ -1,54 +0,0 @@
-import * as React from "react";
-import PropTypes from 'prop-types';
-import { StyleProp, ViewStyle } from "react-native";
-
-export interface Region {
-  latitude: number;
-  longitude: number;
-  latitudeDelta: number;
-  longitudeDelta: number;
-  zoom: number;
-}
-
-export interface LatLng {
-  latitude: number;
-  longitude: number;
-}
-
-export interface ClusterData {
-  id: number;
-  siteName: string;
-  latlng: LatLng;
-  available: boolean;
-}
-
-export interface VbeClusterMapProps {
-  style?: StyleProp<ViewStyle>;
-  region: Region;
-  data: ClusterData[];
-  animation: boolean;
-  showUserLocation: boolean;
-  moveOnMarkerPress: boolean;
-  onMapReady?: () => void;
-  onMarkerPress?: (event: ClusterData) => void;
-}
-
-export declare class VbeClusterMap extends React.Component<VbeClusterMapProps, any> {
-  static propTypes: {
-    style: PropTypes.Requireable<any>,
-    region: PropTypes.Requireable<Region>,
-    data: PropTypes.Requireable<ClusterData[]>,
-    animation: PropTypes.Requireable<boolean>,
-    showUserLocation: PropTypes.Requireable<boolean>,
-    moveOnMarkerPress: PropTypes.Requireable<boolean>,
-    onMapReady: PropTypes.Requireable<() => any>,
-    onMarkerPress: PropTypes.Requireable<(...args: ClusterData[]) => any>
-  };
-  static defaultProps: {
-    animation: boolean;
-    showUserLocation: boolean;
-    moveOnMarkerPress: boolean;
-  }
-}
-
-export default VbeClusterMap;

+ 0 - 90
Strides-APP/node_modules/vbe-cluster-map/index.js

@@ -1,90 +0,0 @@
-import React, { Component } from 'react';
-import PropTypes from 'prop-types';
-import { View, ViewPropTypes, requireNativeComponent } from 'react-native';
-
-const viewPropTypes = ViewPropTypes || View.propTypes;
-
-const propTypes = {
-  ...viewPropTypes,
-  /**
-   * Callback that is called continuously when the user is dragging the map.
-   */
-  style: viewPropTypes.style,
-  region: PropTypes.shape({
-    latitude: PropTypes.number.isRequired,
-    longitude: PropTypes.number.isRequired,
-    latitudeDelta: PropTypes.number.isRequired,
-    longitudeDelta: PropTypes.number.isRequired,
-    zoom: PropTypes.number
-  }),
-  data: PropTypes.array,
-  animation: PropTypes.bool,
-  showUserLocation: PropTypes.bool,
-  moveOnMarkerPress: PropTypes.bool,
-  onMapReady: PropTypes.func,
-  onMarkerPress: PropTypes.func
-};
-
-const VbeClusterView = requireNativeComponent('VbeClusterMap', propTypes);
-
-class VbeClusterMap extends Component {
-
-  constructor(props) {
-    super(props);
-    this.state = {
-      mapReady: false
-    }
-    this.map;
-    this._onMapReady = this._onMapReady.bind(this);
-    this._onMarkerPress = this._onMarkerPress.bind(this);
-    this.moveCamera = this.moveCamera.bind(this);
-    this.showUserLocation = this.showUserLocation.bind(this);
-  }
-
-  _onMapReady() {
-    this.setState({
-      mapReady: true
-    })
-    /*if (this.props.region) {
-      this.map.setNativeProps({ region: this.props.region });
-    }*/
-    if (this.props.onMapReady) {
-      this.props.onMapReady();
-    }
-  }
-
-  _onMarkerPress(event) {
-    if (this.props.onMarkerPress) {
-      this.props.onMarkerPress(event.nativeEvent);
-    }
-  }
-
-  moveCamera(region, zoom) {
-    //console.log('moveCamera', region);
-    if (region) {
-      if (!region.zoom && zoom) {
-        region.zoom = zoom;
-      }
-      this.map.setNativeProps({ region: region });
-    }
-  }
-
-  showUserLocation() {
-    this.map.setNativeProps({ showUserLocation: this.props.showUserLocation });
-  }
-  
-  render() {
-    return (
-      <VbeClusterView
-        ref={ref => this.map = ref}
-        {...this.props}
-        onMapReady={this._onMapReady}
-        onMarkerPress={this._onMarkerPress}
-      />
-    );
-  }
-}
-
-VbeClusterMap.propTypes = propTypes;
-
-module.exports = VbeClusterMap;

+ 0 - 28
Strides-APP/node_modules/vbe-cluster-map/package.json

@@ -1,28 +0,0 @@
-{
-  "name": "vbe-cluster-map",
-  "description": "React Native Mapview cluster component for Android Native",
-  "main": "index.js",
-  "author": "vbea <vbea@foxmail.com>",
-  "version": "1.0",
-  "scripts": {
-    "lint": "./node_modules/eslint/bin/eslint.js .",
-    "ci": "npm run lint"
-  },
-  "repository": {
-    "type": "git",
-    "url": "https://github.com/vbea/vbe-cluster-map"
-  },
-  "keywords": [
-    "react",
-    "react-native",
-    "react-component",
-    "map",
-    "cluster-map",
-    "google-maps",
-    "vbe-cluster-map"
-  ],
-  "peerDependencies": {
-    "react": ">= 16.0 || < 17.0",
-    "react-native": ">= 0.51"
-  }
-}

+ 0 - 9
Strides-APP/node_modules/vbe-cluster-map/react-native.config.js

@@ -1,9 +0,0 @@
-module.exports = {
-  dependency: {
-    platforms: {
-      android: {
-        sourceDir: './android',
-      },
-    },
-  },
-};