From df4c6d53752a0511451c86e4f0af752a75075ebb Mon Sep 17 00:00:00 2001 From: cyrus25 Date: Mon, 5 Sep 2022 23:34:57 +0530 Subject: [PATCH] Made style pointerEvents take priority over pointerEvents prop --- Libraries/Components/View/View.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 76ec6975c7c1..bc2145e52982 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -108,8 +108,8 @@ const View: React.AbstractComponent< treeitem: undefined, }; - const flattendStyle = flattenStyle(style); - const newPointerEvents = pointerEvents || flattendStyle?.pointerEvents; + const flattenedStyle = flattenStyle(style); + const newPointerEvents = flattenedStyle?.pointerEvents || pointerEvents; return (