Skip to content

Commit

Permalink
refactor!:use LocationPuck instead of deprecated NativeUserLocation
Browse files Browse the repository at this point in the history
Follow-up for rnmapbox#3222
  • Loading branch information
chuchuva authored May 22, 2024
1 parent 7806111 commit 7d7e1bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/UserLocation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CircleLayerStyle } from '../Mapbox';
import Annotation from './Annotation';
import CircleLayer from './CircleLayer';
import HeadingIndicator from './HeadingIndicator';
import NativeUserLocation from './LocationPuck';
import LocationPuck from './LocationPuck';

const mapboxBlue = 'rgba(51, 181, 229, 100)';

Expand Down Expand Up @@ -100,7 +100,7 @@ type Props = {
onUpdate?: (location: Location) => void;

/**
* @deprecated use NativeUserLocation component instead of UserLocationRenderMode.Native
* @deprecated use LocationPuck component instead of UserLocationRenderMode.Native
* Which render mode to use.
*/
renderMode?: UserLocationRenderMode;
Expand Down Expand Up @@ -258,7 +258,7 @@ class UserLocation extends React.Component<Props, UserLocationState> {
androidRenderMode,
iosShowsUserHeadingIndicator: showsUserHeadingIndicator,
};
return <NativeUserLocation {...props} />;
return <LocationPuck {...props} />;
}

render() {
Expand Down

0 comments on commit 7d7e1bc

Please sign in to comment.