From 9edddb16ba249174aefaa911e908d0d1f63a17ec Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 13 Apr 2021 12:40:23 -0700 Subject: [PATCH] Revert "[fix] setNativeProps logic" This reverts commit c0abdbfaaead4b6fd999cb767cfa1de1cc046564. Fix #1987 --- .../react-native-web/src/modules/usePlatformMethods/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native-web/src/modules/usePlatformMethods/index.js b/packages/react-native-web/src/modules/usePlatformMethods/index.js index 9c3737d1..4e91b677 100644 --- a/packages/react-native-web/src/modules/usePlatformMethods/index.js +++ b/packages/react-native-web/src/modules/usePlatformMethods/index.js @@ -19,12 +19,11 @@ const emptyObject = {}; function setNativeProps(node, nativeProps, classList, pointerEvents, style, previousStyleRef) { if (node != null && nativeProps) { - const previousStyle = previousStyleRef ? previousStyleRef.current : {}; const domProps = createDOMProps(null, { pointerEvents, ...nativeProps, classList: [classList, nativeProps.className], - style: [style, previousStyle, nativeProps.style] + style: [style, nativeProps.style] }); const nextDomStyle = domProps.style;