skycocker/react-native-sfsafariviewcontroller

Upgrade to more recent React Native version

Opened this issue · 1 comments

Current configuration only works on React-Native 0.47.2 or earlier. To have this work on 0.48.x and above, please update the imports of the RCTSFSafariViewController.h file:

Current:

#import <React/RCTBridgeModule.h>
#import <React/RCTConvert.h>
#import <React/RCTEventDispatcher.h>
#import <UIKit/UIKit.h>

Updated:

#import <React/RCTConvert.h>
#import <React/RCTEventDispatcher.h>
#import <UIKit/UIKit.h>


#if __has_include(<React/RCTBridgeModule.h>)
  #import <React/RCTBridgeModule.h>
#else
  #import "RCTBridgeModule.h"
#endif
``

@blainemuri can you provide a pull request? it'll be way better this way, since you already know what to do. Thanks!