Skip to content

Commit 460153f

Browse files
rubennortefacebook-github-bot
authored andcommitted
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
1 parent 624bdc7 commit 460153f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/Components/ScrollView/ScrollView.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ import AndroidHorizontalScrollViewNativeComponent from './AndroidHorizontalScrol
5050
import ScrollContentViewNativeComponent from './ScrollContentViewNativeComponent';
5151
import ScrollViewNativeComponent from './ScrollViewNativeComponent';
5252

53+
if (Platform.OS === 'ios') {
54+
require('../../Renderer/shims/ReactNative'); // Force side effects to prevent T55744311
55+
}
56+
5357
const {NativeHorizontalScrollViewTuple, NativeVerticalScrollViewTuple} =
5458
Platform.OS === 'android'
5559
? {

0 commit comments

Comments
 (0)