@yrezgui on Twitter & GitHub
Developer Evangelist in London, UK
for IBM Watson
Feel free to ping me or send me a mail yrezgui@uk.ibm.com
About 16.67ms / frame
#import "MapBoxView.h" @import Mapbox; @implementation MapBoxView { MGLMapView *_map; } - (instancetype)init { self = [super init]; _map = [[MGLMapView alloc] initWithFrame:self.bounds]; _map.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; [self addSubview:_map]; return self; } @end
#import "MapBoxManager.h" #import "MapBoxView.h" @implementation MapBoxManager RCT_EXPORT_MODULE() - (UIView *)view { return [[MapBoxView alloc] init]; } @end
import { requireNativeComponent } from 'react-native'; // requireNativeComponent automatically resolves this to "MapBoxManager" module.exports = requireNativeComponent('MapBox', null);
By Yacine Rezgui