Skip to content

Commit 3fe3c6f

Browse files
benoitdionmatt-oakes
authored andcommitted
fix(tvOS): Do not import CoreTelephony on tvOS (react-native-netinfo#195)
1 parent 97c1820 commit 3fe3c6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios/RNCNetInfo.m

+3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
#include <ifaddrs.h>
1212
#include <arpa/inet.h>
13+
14+
#if !TARGET_OS_TV
1315
@import CoreTelephony;
16+
#endif
1417

1518
#import <React/RCTAssert.h>
1619
#import <React/RCTBridge.h>

0 commit comments

Comments
 (0)