Created
August 1, 2018 16:10
-
-
Save GaborWnuk/448eba62be58c9140c770db36dbc92f9 to your computer and use it in GitHub Desktop.
FancyViewManager.m for React Native
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 "FancyViewManager.h" | |
#import <React/UIView+React.h> | |
@interface FancyViewManager () | |
@end | |
@implementation FancyViewManager | |
/* | |
We could either remove "FancyViewManagerManager" here and rename Android module, | |
or use "ManagerManager" suffix here as a hack to achieve compatibility between platforms. | |
*/ | |
RCT_EXPORT_MODULE(FancyViewManagerManager) | |
RCT_CUSTOM_VIEW_PROPERTY(text, NSString, FancyViewManager) { | |
NSLog(@"%@", json); | |
} | |
- (UIView *)view | |
{ | |
// (...) | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment