diff --git a/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable+Default.swift b/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable+Default.swift new file mode 100644 index 00000000..ff6e139b --- /dev/null +++ b/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable+Default.swift @@ -0,0 +1,42 @@ +// +// RNIViewControllerLifeCycleNotifiable+Default.swift +// react-native-ios-modal +// +// Created by Dominic Go on 4/27/23. +// + +import Foundation + +extension RNIViewControllerLifeCycleNotifiable { + public func viewDidLoad(sender: UIViewController) { + // no-op + }; + + public func viewDidLayoutSubviews(sender: UIViewController) { + // no-op + }; + + public func viewWillAppear(sender: UIViewController, animated: Bool) { + // no-op + }; + + public func viewDidAppear(sender: UIViewController, animated: Bool) { + // no-op + }; + + public func viewWillDisappear(sender: UIViewController, animated: Bool) { + // no-op + }; + + public func viewDidDisappear(sender: UIViewController, animated: Bool) { + // no-op + }; + + public func willMove(sender: UIViewController, toParent parent: UIViewController?) { + // no-op + }; + + public func didMove(sender: UIViewController, toParent parent: UIViewController?) { + // no-op + }; +}; diff --git a/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable.swift b/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable.swift index 7cac0132..d349bdde 100644 --- a/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable.swift +++ b/ios/src_library/React Native/RNIViewControllerLifeCycleNotifiable/RNIViewControllerLifeCycleNotifiable.swift @@ -33,36 +33,3 @@ public protocol RNIViewControllerLifeCycleNotifiable: AnyObject { }; -extension RNIViewControllerLifeCycleNotifiable { - public func viewDidLoad(sender: UIViewController) { - // no-op - }; - - public func viewDidLayoutSubviews(sender: UIViewController) { - // no-op - }; - - public func viewWillAppear(sender: UIViewController, animated: Bool) { - // no-op - }; - - public func viewDidAppear(sender: UIViewController, animated: Bool) { - // no-op - }; - - public func viewWillDisappear(sender: UIViewController, animated: Bool) { - // no-op - }; - - public func viewDidDisappear(sender: UIViewController, animated: Bool) { - // no-op - }; - - public func willMove(sender: UIViewController, toParent parent: UIViewController?) { - // no-op - }; - - public func didMove(sender: UIViewController, toParent parent: UIViewController?) { - // no-op - }; -};