Created
December 10, 2018 23:29
-
-
Save shirakaba/c2731582f4d92140ae155eb8bfe75856 to your computer and use it in GitHub Desktop.
Entry file for a React Native Swift app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if canImport(UIKit) | |
import UIKit | |
UIApplicationMain( | |
CommandLine.argc, | |
CommandLine.unsafeArgv, | |
NSStringFromClass(UIApplication.self), | |
NSStringFromClass(AppDelegate.self) | |
) | |
#elseif canImport(Cocoa) | |
import Cocoa | |
NSApplicationMain( | |
CommandLine.argc, | |
CommandLine.unsafeArgv, | |
NSStringFromClass(NSApplication.self), | |
NSStringFromClass(AppDelegate.self) | |
) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment