Skip to content

Commit 03382dd

Browse files
authored
use puckBearingEnabled instead of iosShowsUserHeadingIndicator (#4132)
* use puckBearingEnabled instead of iosShowsUserHeadingIndicator * stronger typing
1 parent 93ae675 commit 03382dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/UserLocation.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,10 @@ class UserLocation extends React.Component<Props, UserLocationState> {
259259
_renderNative() {
260260
const { androidRenderMode, showsUserHeadingIndicator } = this.props;
261261

262-
const props = {
262+
const props: React.ComponentProps<typeof LocationPuck> = {
263263
androidRenderMode,
264-
iosShowsUserHeadingIndicator: showsUserHeadingIndicator,
264+
puckBearingEnabled: showsUserHeadingIndicator,
265+
puckBearing: showsUserHeadingIndicator ? 'heading' : undefined,
265266
};
266267
return <LocationPuck {...props} />;
267268
}

0 commit comments

Comments
 (0)