Skip to content

Commit 1b71d72

Browse files
committed
chore: remove imageSrc
1 parent ea55831 commit 1b71d72

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

ios/react-native-navigation-sdk/NavViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
#import "NavViewController.h"
18-
#import <React/RCTConvert.h>
1918
#import <React/RCTLog.h>
2019
#import <UIKit/UIKit.h>
2120
#import "NavModule.h"
@@ -578,10 +577,6 @@ - (void)addMarker:(NSDictionary *)markerOptions result:(OnDictionaryResult)compl
578577
UIImage *icon = [UIImage imageNamed:imgPath]; // Assuming local asset
579578
marker.icon = icon;
580579
}
581-
} else if ([markerOptions objectForKey:@"imageSrc"]) {
582-
NSDictionary *imageSrc = [markerOptions objectForKey:@"imageSrc"];
583-
UIImage *icon = [RCTConvert UIImage:imageSrc];
584-
marker.icon = icon;
585580
}
586581

587582
BOOL visible = [[markerOptions objectForKey:@"visible"] boolValue];

src/maps/mapView/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
import type { ImageURISource } from 'react-native';
1817
import type { LatLng, Location, Point, Bounds } from '../../shared/types';
1918
import type {
2019
CameraPosition,
@@ -54,8 +53,6 @@ export interface MarkerOptions {
5453
position: LatLng;
5554
/** Path to a local image asset that should be displayed in the marker instead of using the default marker pin. */
5655
imgPath?: string;
57-
/** Image source to use as marker image. */
58-
imageSrc?: ImageURISource;
5956
/** A text string that's displayed in an info window when the user taps the marker. You can change this value at any time. */
6057
title?: string;
6158
/** Additional text that's displayed below the title. You can change this value at any time. */

0 commit comments

Comments
 (0)