@maplayr/react-native
    Preparing search index...

    Type Alias MapViewProps

    MapViewProps: Omit<MapViewNativeProps, "contentInsets" | "onCameraTargetChange"> & {
        contentInsets?: {
            bottom?: number;
            left?: number;
            right?: number;
            top?: number;
        };
        onCameraTargetChange?: (event: CameraTargetChangeEvent) => void;
        ref?: Ref<MapViewHandle>;
    }

    Type Declaration

    • OptionalcontentInsets?: { bottom?: number; left?: number; right?: number; top?: number }

      Space in points along each edge of the view that the camera treats as covered, so that content is centred and fitted within the remaining area

    • OptionalonCameraTargetChange?: (event: CameraTargetChangeEvent) => void

      Called when the camera starts or stops tracking something, whether through moveCamera, the user moving the map, or a later moveCamera call taking the camera elsewhere

    • Optionalref?: Ref<MapViewHandle>

      Receives the handle for moving the camera