Skip to content

Commit

Permalink
💄 Gloss: Re-Arrange Code
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Mar 27, 2023
1 parent e2a842e commit 93148a3
Showing 1 changed file with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,11 @@ class RNIModalViewModule: RCTEventEmitter {
guard self.hasListeners else { return };
self.sendEvent(withName: event.rawValue, body: params);
};
};

// MARK: - Standalone Functions
// ----------------------------

extension RNIModalViewModule {

// TODO: See TODO:2023-03-05-00-33-15 - Refactor: Re-write
// MARK: - Module Functions
// ------------------------

// TODO: See TODO:2023-03-05-00-33-15 - Refactor: Re-write
// `dismissModalByID``
@objc func dismissModalByID(
_ modalID: NSString,
Expand Down Expand Up @@ -114,14 +111,14 @@ extension RNIModalViewModule {
} else {
/// `modalRef` no longer exists, so we have dismiss manually

/// TODO: See TODO:2023-03-05-00-32-43 - Fix: Edge
/// TODO: See TODO:2023-03-05-00-32-43 - Fix: Edge
// Case - Modal Focus/Blur Bug
//
// * Add code to manually propagate modal blur/focus
// * Add code to manually propagate modal blur/focus
// events
//
// * The modal is being dismissed via calling the
// modal view controller's dismiss method. As such,
// * The modal is being dismissed via calling the
// modal view controller's dismiss method. As such,
// the focus/blur event is not being propagated.
modalVC.dismiss(animated: true){
// modal dismissed
Expand Down Expand Up @@ -151,12 +148,9 @@ extension RNIModalViewModule {
callback([success != nil]);
};
};
};

// MARK: - View-Related Functions
// ------------------------------

extension RNIModalViewModule {
// MARK: - View-Related Functions
// ------------------------------

@objc func setModalVisibility(
_ node: NSNumber,
Expand Down

0 comments on commit 93148a3

Please sign in to comment.