From 460153fc336d79a4d71fa4bc994e22ae1456fe8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Fri, 9 Sep 2022 09:16:24 -0700 Subject: [PATCH] Restore fix for ScrollView error on iOS Summary: Changelog: [internal] This brings back a fix for ScrollView on iOS that we removed because we thought it was no longer necessary, but it actually is. Reviewed By: jacdebug Differential Revision: D39382967 fbshipit-source-id: f052b4fb899f4e60e8c530990caf07344a907c43 --- Libraries/Components/ScrollView/ScrollView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 2446276a42d..354d3c75de5 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -50,6 +50,10 @@ import AndroidHorizontalScrollViewNativeComponent from './AndroidHorizontalScrol import ScrollContentViewNativeComponent from './ScrollContentViewNativeComponent'; import ScrollViewNativeComponent from './ScrollViewNativeComponent'; +if (Platform.OS === 'ios') { + require('../../Renderer/shims/ReactNative'); // Force side effects to prevent T55744311 +} + const {NativeHorizontalScrollViewTuple, NativeVerticalScrollViewTuple} = Platform.OS === 'android' ? {