Skip to content

Commit

Permalink
Switch RN module import fallbacks
Browse files Browse the repository at this point in the history
See this issue for reference: facebook/react-native#15775 (comment)

Seems like React doesn't like it when the fallback is the *new* import, the fallback should be the old way.
  • Loading branch information
tamagokun authored Nov 8, 2017
1 parent 979b10c commit a35f983
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ios/MSREventBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
// Copyright © 2017 mischneider. All rights reserved.
//


#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
#else
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#else // Compatibility for RN version < 0.40
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
#endif

NS_ASSUME_NONNULL_BEGIN
Expand Down

0 comments on commit a35f983

Please sign in to comment.