mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 15:42:24 +00:00
Revert "[fix] setNativeProps logic"
This reverts commit c0abdbfaae.
Fix #1987
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user