Last active
January 5, 2019 01:19
-
-
Save ryardley/5ebf76cadab26a2cf07a3efd87f26eaa to your computer and use it in GitHub Desktop.
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
// ./ios/ReactBridge/RCTHelloWorld.m | |
#import "RCTHelloWorld.h" | |
@implementation RCTHelloWorld | |
RCT_EXPORT_MODULE(); | |
RCT_REMAP_METHOD(sayHello, | |
resolver:(RCTPromiseResolveBlock)resolve | |
rejecter:(RCTPromiseRejectBlock)reject) | |
{ | |
resolve(@"Hello from Objective-C"); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment