Skip to content

Instantly share code, notes, and snippets.

@GaborWnuk
Created August 1, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GaborWnuk/448eba62be58c9140c770db36dbc92f9 to your computer and use it in GitHub Desktop.
Save GaborWnuk/448eba62be58c9140c770db36dbc92f9 to your computer and use it in GitHub Desktop.
FancyViewManager.m for React Native
#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