Created
February 4, 2020 19:53
-
-
Save ozcanzaferayan/9fc3088824fbf214b037ee945dcafead 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
@interface Person : NSObject <RCTBridgeModule> | |
@end | |
@implementation Logger | |
RCT_EXPORT_MODULE() | |
RCT_EXPORT_METHOD(greet:(NSString *)name) | |
{ | |
NSLog(@"Merhaba %@!", name); | |
[_bridge.eventDispatcher sendAppEventWithName:@"greeted" | |
body:@{ @"name": name }]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment