From 630f87ff6bd19c4dfc071783139c938eda3baf6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Kueny?= Date: Fri, 23 Jun 2023 21:00:01 +0200 Subject: [PATCH] fix: updated scrollables mocks with ReactNative list equivalent (#1394)(by @gkueny) --- mock.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mock.js b/mock.js index d4c85a791..70131c143 100644 --- a/mock.js +++ b/mock.js @@ -9,6 +9,7 @@ */ const React = require('react'); +const ReactNative = require('react-native'); const NOOP = () => {}; const NOOP_VALUE = { value: 0 }; @@ -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,