Skip to content

Commit

Permalink
💫 Update: RNIModalManager.modalInstanceDict
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 12, 2023
1 parent 079f4c7 commit e4dc312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/src_library/React Native/RNIModal/RNIModalManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public class RNIModalManager {
// ------------------

private(set) public var modalInstanceDict =
RNIWeakDictionary<UUID, any RNIModal>();
RNIWeakDictionary<String, any RNIModal>();

private(set) public var windowToCurrentModalIndexMap:
Dictionary<String, Int> = [:];
Expand Down Expand Up @@ -283,7 +283,7 @@ public class RNIModalManager {

modal.modalPresentationNotificationDelegate = self;

self.modalInstanceDict[modal.synthesizedUUID] = modal;
self.modalInstanceDict[modal.modalNativeID] = modal;
};

public func getModalInstances(
Expand Down

0 comments on commit e4dc312

Please sign in to comment.