export function normalIcon(showsUserHeadingIndicator: any, heading: any): JSX.Element[]; export default UserLocation; declare class UserLocation extends React.Component { static propTypes: { /** * Whether location icon is animated between updates */ animated: PropTypes.Requireable; /** * Which render mode to use. * Can either be `normal` or `native` */ renderMode: PropTypes.Requireable; /** * native/android only render mode * * - normal: just a circle * - compass: triangle with heading * - gps: large arrow * * @platform android */ androidRenderMode: PropTypes.Requireable; /** * Whether location icon is visible */ visible: PropTypes.Requireable; /** * Callback that is triggered on location icon press */ onPress: PropTypes.Requireable<(...args: any[]) => any>; /** * Callback that is triggered on location update */ onUpdate: PropTypes.Requireable<(...args: any[]) => any>; /** * Show or hide small arrow which indicates direction the device is pointing relative to north. */ showsUserHeadingIndicator: PropTypes.Requireable; /** * Minimum amount of movement before GPS location is updated in meters */ minDisplacement: PropTypes.Requireable; /** * Custom location icon of type mapbox-gl-native components */ children: PropTypes.Requireable; }; static defaultProps: { animated: boolean; visible: boolean; showsUserHeadingIndicator: boolean; minDisplacement: number; renderMode: string; }; static RenderMode: { Native: string; Normal: string; }; constructor(props: any); state: { shouldShowUserLocation: boolean; coordinates: null; heading: null; }; _onLocationUpdate(location: any): void; _isMounted: null; locationManagerRunning: boolean; componentDidMount(): Promise; componentDidUpdate(prevProps: any): Promise; componentWillUnmount(): Promise; /** * Whether to start or stop listening to the locationManager * * Notice, that listening will start automatically when * either `onUpdate` or `visible` are set * * @async * @param {Object} running - Object with key `running` and `boolean` value * @return {Promise} */ setLocationManager({ running }: any): Promise; /** * * If locationManager should be running * * @return {boolean} */ needsLocationManagerRunning(): boolean; _renderNative(): JSX.Element; render(): JSX.Element | null; } import React from "react"; import PropTypes from "prop-types"; //# sourceMappingURL=UserLocation.d.ts.map