Skip to content

Commit 630f87f

Browse files
gkuenygorhom
authored andcommitted
fix: updated scrollables mocks with ReactNative list equivalent (#1394)(by @gkueny)
1 parent 549e461 commit 630f87f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mock.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
const React = require('react');
12+
const ReactNative = require('react-native');
1213

1314
const NOOP = () => {};
1415
const NOOP_VALUE = { value: 0 };
@@ -104,10 +105,10 @@ const useBottomSheetDynamicSnapPoints = () => ({
104105

105106
module.exports = {
106107
BottomSheetView: BottomSheetComponent,
107-
BottomSheetScrollView: BottomSheetComponent,
108-
BottomSheetSectionList: BottomSheetComponent,
109-
BottomSheetFlatList: BottomSheetComponent,
110-
BottomSheetVirtualizedList: BottomSheetComponent,
108+
BottomSheetScrollView: ReactNative.ScrollView,
109+
BottomSheetSectionList: ReactNative.SectionList,
110+
BottomSheetFlatList: ReactNative.FlatList,
111+
BottomSheetVirtualizedList: ReactNative.VirtualizedList,
111112

112113
BottomSheetModalProvider,
113114
BottomSheetModal,

0 commit comments

Comments
 (0)