Skip to content

Commit 75a0273

Browse files
macdoum1facebook-github-bot
authored andcommitted
- Correct fishhook import in RCTReconnectingWebSocket Fixes #16039 (#16271)
Summary: RCTReconnectingWebSocket is not compiling correctly because of an incorrect import (#16039). Everything build and run as usual. [IOS] [BUGFIX] [Fishhook] - Correct fishhook import in RCTReconnectingWebSocket Fixes #16039 Closes #16271 Differential Revision: D8679758 Pulled By: hramos fbshipit-source-id: b05dda3a01a68ace87f11889b84ce6b323e5c16a
1 parent bfb68c0 commit 75a0273

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Libraries/WebSocket/RCTReconnectingWebSocket.m

+5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
#import <React/RCTConvert.h>
1111
#import <React/RCTDefines.h>
12+
13+
#if __has_include(<React/fishhook.h>)
14+
#import <React/fishhook.h>
15+
#else
1216
#import <fishhook/fishhook.h>
17+
#endif
1318

1419
#if __has_include(<os/log.h>) && defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 100300 /* __IPHONE_10_3 */
1520
#import <os/log.h>

0 commit comments

Comments
 (0)