Last active
April 8, 2019 03:35
-
-
Save cylim/913af77ad96c8e016e60284b61796d50 to your computer and use it in GitHub Desktop.
Exit Manager for React Native ios
This file contains 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
#import <React/RCTBridgeModule.h> | |
@interface ExitManager : NSObject <RCTBridgeModule> | |
@end |
This file contains 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
#import "ExitManager.h" | |
@implementation ExitManager | |
RCT_EXPORT_MODULE(); | |
// Exported Mehod Name for the ExitManager module | |
RCT_EXPORT_METHOD(exitApp) | |
{ | |
exit(0); | |
}; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment