ReactNative Error no such file or directory: '.../node_modules/react-native-maps/lib/ios/AirGoogleMaps/DummyView.m'

If you eve encounter the same situation


clang: error: no such file or directory: '/Users/adesantoasman/.../node_modules/react-native-maps/lib/ios/AirGoogleMaps/DummyView.m'

Then simply do these:
1. go to the node_modules/react-native-maps/lib/ios/AirGoogleMaps/

2. the copy
cp AIRDummyView.h DummyView.h
cp AIRDummyView.m DummyView.m

3. edit the content of respective files to

DummyView.h
===========
//
//  AIRDummyView.h
//  AirMapsExplorer
//
//  Created by Gil Birman on 10/4/16.
//

#ifdef HAVE_GOOGLE_MAPS

#import


@interface DummyView : UIView
@property (nonatomic, weak) UIView *view;
- (instancetype)initWithView:(UIView*)view;
@end

#endif

DummyView.m
===========
//
//  AIRDummyView.m
//  AirMapsExplorer
//
//  Created by Gil Birman on 10/4/16.
//

#ifdef HAVE_GOOGLE_MAPS

#import
#import "DummyView.h"

@implementation DummyView
- (instancetype)initWithView:(UIView*)view
{
  if ((self = [super init])) {
    self.view = view;
  }
  return self;
}
@end

#endif

Hope it helps ^^

Comments