Question from the React Native (Legacy) test

How to use a native component in React Native.

Hard
#import <MapKit/MapKit.h>

#import <React/RCTViewManager.h>

@interface RNTMapManager : RCTViewManager
@end

@implementation RNTMapManager

RCT_EXPORT_MODULE()

- (UIView *)view
{
  return [[MKMapView alloc] init];
}

@end

What does this code do?

Author: Damien CavaillèsStatus: Published(Update)Question passed 57 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!