Skip to content

Commit

Permalink
fix(tvOS): Fixed a crash with tvOS builds caused by trying to use the…
Browse files Browse the repository at this point in the history
… ssid method (#283 by @vdmtrv)
  • Loading branch information
vdmtrv authored and matt-oakes committed Jan 6, 2020
1 parent c3a1945 commit a0191e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/RNCNetInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ - (NSMutableDictionary *)detailsFromInterface:(nonnull NSString *)requestedInter
} else if ([requestedInterface isEqualToString: RNCConnectionTypeWifi] || [requestedInterface isEqualToString: RNCConnectionTypeEthernet]) {
details[@"ipAddress"] = [self ipAddress] ?: NSNull.null;
details[@"subnet"] = [self subnet] ?: NSNull.null;
#if !TARGET_OS_TV
details[@"ssid"] = [self ssid] ?: NSNull.null;
#endif
}
return details;
}
Expand Down

0 comments on commit a0191e0

Please sign in to comment.