Skip to content

Commit 1e61a59

Browse files
authored
fix(js): remove RCTEventEmitter workaround (#858)
1 parent 0dde7a2 commit 1e61a59

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/PagerView.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ import LEGACY_PagerViewNativeComponent, {
2020
Commands as LEGACY_PagerViewNativeCommands,
2121
} from './specs/LEGACY_PagerViewNativeComponent';
2222

23-
// The Fabric component for PagerView uses a work around present also in ScrollView:
24-
// https://github.com/callstack/react-native-pager-view/blob/master/ios/Fabric/RNCPagerViewComponentView.mm#L362-L368
25-
// That workaround works only if we add these lines in to make sure that the RCTEventEmitter is registered properly
26-
// in the JS callable modules.
27-
// NOTE: This is a workaround as we would like to get rid of these lines below. But for the time being, as the cut date for
28-
// 0.74 approaches, we need to keep these lines.
29-
// As soon as we figure out how to move forward, we will provide guidance and/or submit a PR to fix this.
30-
if (Platform.OS === 'ios') {
31-
require('react-native/Libraries/Renderer/shims/ReactNative'); // Force side effects to prevent T55744311
32-
}
33-
3423
/**
3524
* Container that allows to flip left and right between child views. Each
3625
* child view of the `PagerView` will be treated as a separate page

0 commit comments

Comments
 (0)