Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/RNIterableAPI/RNIterableAPI.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ typedef NS_ENUM(NSInteger, InAppShowResponse) {
skip = 1,
};

#import "Iterable_React_Native_SDK-Swift.h"
#import <Iterable_React_Native_SDK/Iterable_React_Native_SDK-Swift.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @alexstaravoitau. This could potentially break things depending on a users podfile setup. It would be safer for this to be conditional to account for that.

Untested pseudocode example:

#if __has_include(<Iterable_React_Native_SDK/Iterable_React_Native_SDK-Swift.h>)
  #import <Iterable_React_Native_SDK/Iterable_React_Native_SDK-Swift.h>
#else
  #import "Iterable_React_Native_SDK-Swift.h"
#endif


@interface RNIterableAPI () <ReactIterableAPIDelegate>
@end
Expand Down
Loading