Skip to content

Commit 263b8c4

Browse files
committed
iOS: Corrects getActiveServerId() to return null rather than undefined when there is no active server
1 parent 1dc2413 commit 263b8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/ReactNativeStaticServer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ - (NSDictionary*) getConstants {
4444
getActiveServerId:(RCTPromiseResolveBlock) resolve
4545
rejecter:(RCTPromiseRejectBlock)reject
4646
) {
47-
resolve(self->server ? self->server.serverId : nil);
47+
resolve(self->server ? self->server.serverId : [NSNull null]);
4848
}
4949

5050
RCT_REMAP_METHOD(getLocalIpAddress,

0 commit comments

Comments
 (0)