mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 01:36:11 +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) {
|
function setNativeProps(node, nativeProps, classList, pointerEvents, style, previousStyleRef) {
|
||||||
if (node != null && nativeProps) {
|
if (node != null && nativeProps) {
|
||||||
const previousStyle = previousStyleRef ? previousStyleRef.current : {};
|
|
||||||
const domProps = createDOMProps(null, {
|
const domProps = createDOMProps(null, {
|
||||||
pointerEvents,
|
pointerEvents,
|
||||||
...nativeProps,
|
...nativeProps,
|
||||||
classList: [classList, nativeProps.className],
|
classList: [classList, nativeProps.className],
|
||||||
style: [style, previousStyle, nativeProps.style]
|
style: [style, nativeProps.style]
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextDomStyle = domProps.style;
|
const nextDomStyle = domProps.style;
|
||||||
|
|||||||
Reference in New Issue
Block a user