Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
FancyNativeModule.m for React Native project based on Swift
#import "FancyNativeModule.h"
@interface FancyNativeModule()
@end
@implementation FancyNativeModule
RCT_EXPORT_MODULE()
RCT_EXPORT_METHOD(saySomething:(nonnull NSString *)message) {
NSLog(@"%@", message);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment