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
This commit is contained in:
Rubén Norte 2022-09-09 09:16:24 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 624bdc7ec6
Коммит 460153fc33
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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'
? {