From ac0b84842b681ca9b9d36d52b6c167db99cf6e55 Mon Sep 17 00:00:00 2001 From: alvancf <742997447@qq.com> Date: Sat, 15 Feb 2025 10:38:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Devent=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E4=B8=8D=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: alvancf <742997447@qq.com> --- react-native-harmony/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react-native-harmony/index.js b/react-native-harmony/index.js index df4392e7..a454ed94 100644 --- a/react-native-harmony/index.js +++ b/react-native-harmony/index.js @@ -223,9 +223,9 @@ module.exports = { get PermissionsAndroid() { return require('react-native/Libraries/PermissionsAndroid/PermissionsAndroid'); }, - get DeviceEventEmitter() { - return require('./Libraries/partner/DeviceEventEmitter/RCTDeviceEventEmitter').default; - }, + // get DeviceEventEmitter() { + // return require('./Libraries/partner/DeviceEventEmitter/RCTDeviceEventEmitter').default; + // }, get TouchableOpacity() { return require('./Libraries/partner/Touchable/TouchableOpacity'); }, -- Gitee From d1a392e7ba71ac58e2b3bc834809ff8f464c446c Mon Sep 17 00:00:00 2001 From: alvancf <742997447@qq.com> Date: Sat, 15 Feb 2025 10:46:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A7=A3=E5=86=B3DeprecatedViewStylePropTy?= =?UTF-8?q?pes.js=E6=89=BE=E4=B8=8D=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: alvancf <742997447@qq.com> --- .../DeprecatedPropTypes/DeprecatedViewStylePropTypes.js | 1 + react-native-harmony/metro.config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 react-native-harmony/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js diff --git a/react-native-harmony/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js b/react-native-harmony/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js new file mode 100644 index 00000000..ff8b4c56 --- /dev/null +++ b/react-native-harmony/Libraries/DeprecatedPropTypes/DeprecatedViewStylePropTypes.js @@ -0,0 +1 @@ +export default {}; diff --git a/react-native-harmony/metro.config.js b/react-native-harmony/metro.config.js index 55c45fe8..072719dd 100644 --- a/react-native-harmony/metro.config.js +++ b/react-native-harmony/metro.config.js @@ -12,7 +12,8 @@ const colors = require('colors/safe'); const partenrFile = [ 'ScrollResponder', 'DeprecatedStyleSheetPropType', - 'DeprecatedViewPropTypes' + 'DeprecatedViewPropTypes', + 'DeprecatedViewStylePropTypes' ] const endsWithAny = (str, suffixes) => suffixes.some(suffix => str.endsWith(suffix)); let shouldPrintInfoAboutRNRedirection = true; -- Gitee