From 002ada1e0fe48d09aba388dfb56af133494daf2a Mon Sep 17 00:00:00 2001 From: Kudo Chien Date: Tue, 26 Apr 2022 10:09:49 +0800 Subject: [PATCH] [iOS] Remove private symbols in Expo Go RCTKeyCommands uses iOS private symbols to hook keyboard commands. originally it's debug build only, however, we enable `RCT_DEV` in Expo Go even on release build. this change updates the functionalities for simulator build only which aligns to https://github.com/expo/expo/pull/14735. --- packages/react-native/React/Base/RCTKeyCommands.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/React/Base/RCTKeyCommands.m b/packages/react-native/React/Base/RCTKeyCommands.m index a596902ef8a9d3..780a7031bf1f5d 100644 --- a/packages/react-native/React/Base/RCTKeyCommands.m +++ b/packages/react-native/React/Base/RCTKeyCommands.m @@ -14,7 +14,7 @@ #import "RCTDefines.h" #import "RCTUtils.h" -#if RCT_DEV +#if TARGET_IPHONE_SIMULATOR @interface UIEvent (UIPhysicalKeyboardEvent)