Skip to content

Instantly share code, notes, and snippets.

@imtoo
Created June 22, 2018 08:45
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 imtoo/b0413b4d8457ca72130d05fe17d834f6 to your computer and use it in GitHub Desktop.
Save imtoo/b0413b4d8457ca72130d05fe17d834f6 to your computer and use it in GitHub Desktop.
#import <React/RCTViewManager.h>
#import "meetup-Swift.h"
@interface ChartViewManager: RCTViewManager
@end
@implementation ChartViewManager
RCT_EXPORT_MODULE()
- (UIView *) view {
ChartView *view = [[ChartView alloc] init];
return view;
}
RCT_EXPORT_VIEW_PROPERTY(xValues, NSArray)
RCT_EXPORT_VIEW_PROPERTY(yValues, NSArray)
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment