Skip to content

Commit 98dfe39

Browse files
authored
fix: align default values of map UI option props with Naver Map iOS SDK (#141)
- Changed prop types of isShowCompass, isShowScaleBar, isShowZoomControls to WithDefault<boolean, true> - Ensures default value is true, matching the SDK's default behavior - See: https://navermaps.github.io/ios-map-sdk/reference/Classes/NMFNaverMapView.html
1 parent 870f301 commit 98dfe39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/spec/RNCNaverMapViewNativeComponent.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ interface Props extends ViewProps {
125125
minZoom?: Double;
126126
maxZoom?: Double;
127127

128-
isShowCompass?: boolean;
129-
isShowScaleBar?: boolean;
130-
isShowZoomControls?: boolean;
128+
isShowCompass?: WithDefault<boolean, true>;
129+
isShowScaleBar?: WithDefault<boolean, true>;
130+
isShowZoomControls?: WithDefault<boolean, true>;
131131
isShowIndoorLevelPicker?: boolean;
132132
isShowLocationButton?: boolean;
133133

0 commit comments

Comments
 (0)