Skip to content

Commit

Permalink
Change import priority of React/RCTBridgeModule.h (#437)
Browse files Browse the repository at this point in the history
Fixes #436
  • Loading branch information
iegik authored and ivpusic committed Sep 5, 2017
1 parent 0809973 commit dc41df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/ImageCropPicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

#import <Foundation/Foundation.h>

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

#if __has_include("QBImagePicker.h")
Expand Down

2 comments on commit dc41df7

@Hunter-Dolan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this patch!

Just going to mention that this should probably go to NPM right away as a new version. Because it's a breaking issue on the latest version of RN.

@efstathiosntonas
Copy link

@efstathiosntonas efstathiosntonas commented on dc41df7 Sep 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've spent like 2 hours trying to fix this. @Hunter-Dolan is right...

Please sign in to comment.