Skip to content

Commit

Permalink
fix: updated scrollables mocks with ReactNative list equivalent (#1394)…
Browse files Browse the repository at this point in the history
…(by @gkueny)
  • Loading branch information
gkueny authored and gorhom committed Jun 23, 2023
1 parent 549e461 commit 630f87f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

const React = require('react');
const ReactNative = require('react-native');

const NOOP = () => {};
const NOOP_VALUE = { value: 0 };
Expand Down Expand Up @@ -104,10 +105,10 @@ const useBottomSheetDynamicSnapPoints = () => ({

module.exports = {
BottomSheetView: BottomSheetComponent,
BottomSheetScrollView: BottomSheetComponent,
BottomSheetSectionList: BottomSheetComponent,
BottomSheetFlatList: BottomSheetComponent,
BottomSheetVirtualizedList: BottomSheetComponent,
BottomSheetScrollView: ReactNative.ScrollView,
BottomSheetSectionList: ReactNative.SectionList,
BottomSheetFlatList: ReactNative.FlatList,
BottomSheetVirtualizedList: ReactNative.VirtualizedList,

BottomSheetModalProvider,
BottomSheetModal,
Expand Down

0 comments on commit 630f87f

Please sign in to comment.