diff --git a/React/CoreModules/RCTPlatform.mm b/React/CoreModules/RCTPlatform.mm index 675e9a4aa80f71..2eeab3dc6a3683 100644 --- a/React/CoreModules/RCTPlatform.mm +++ b/React/CoreModules/RCTPlatform.mm @@ -60,11 +60,11 @@ - (dispatch_queue_t)methodQueue UIDevice *device = [UIDevice currentDevice]; auto versions = RCTGetReactNativeVersion(); return typedConstants({ - .forceTouchAvailable = @(RCTForceTouchAvailable()), + .forceTouchAvailable = RCTForceTouchAvailable() ? true : false, .osVersion = [device systemVersion], .systemName = [device systemName], .interfaceIdiom = interfaceIdiom([device userInterfaceIdiom]), - .isTesting = @(RCTRunningInTestEnvironment()), + .isTesting = RCTRunningInTestEnvironment() ? true : false, .reactNativeVersion = JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder({ .minor = [versions[@"minor"] doubleValue], .major = [versions[@"major"] doubleValue],