@artsy/palette-mobile 13.2.24 → 13.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TabFlashList = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_native_collapsible_tab_view_1 = require("react-native-collapsible-tab-view");
|
|
6
|
+
const useListenForTabContentScroll_1 = require("./hooks/useListenForTabContentScroll");
|
|
7
|
+
const useSpace_1 = require("../../utils/hooks/useSpace");
|
|
8
|
+
function TabFlashList(props) {
|
|
9
|
+
(0, useListenForTabContentScroll_1.useListenForTabContentScroll)();
|
|
10
|
+
const space = (0, useSpace_1.useSpace)();
|
|
11
|
+
const contentContainerStyle = (props.contentContainerStyle ?? {});
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)(react_native_collapsible_tab_view_1.Tabs.FlashList, { contentContainerStyle: {
|
|
13
|
+
paddingHorizontal: space(2),
|
|
14
|
+
...contentContainerStyle,
|
|
15
|
+
}, ...props }));
|
|
16
|
+
}
|
|
17
|
+
exports.TabFlashList = TabFlashList;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { useAnimatedTabIndex, useCurrentTabScrollY, useFocusedTab, useHeaderMeasurements } from "react-native-collapsible-tab-view";
|
|
3
|
+
import { TabFlashList } from "./TabFlashList";
|
|
3
4
|
import { TabFlatList } from "./TabFlatList";
|
|
4
5
|
import { TabMasonry } from "./TabMasonry";
|
|
5
6
|
export declare const Tabs: import("react").FC<import("./TabsContainer").TabsContainerProps> & {
|
|
6
7
|
FlatList: typeof TabFlatList;
|
|
8
|
+
FlashList: typeof TabFlashList;
|
|
7
9
|
Masonry: typeof TabMasonry;
|
|
8
10
|
Lazy: import("react").FC<{
|
|
9
11
|
cancelLazyFadeIn?: boolean | undefined;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Tabs = void 0;
|
|
4
4
|
const react_native_collapsible_tab_view_1 = require("react-native-collapsible-tab-view");
|
|
5
5
|
const SubTabBar_1 = require("./SubTabBar");
|
|
6
|
+
const TabFlashList_1 = require("./TabFlashList");
|
|
6
7
|
const TabFlatList_1 = require("./TabFlatList");
|
|
7
8
|
const TabMasonry_1 = require("./TabMasonry");
|
|
8
9
|
const TabScrollView_1 = require("./TabScrollView");
|
|
@@ -11,6 +12,7 @@ const TabsWithHeader_1 = require("./TabsWithHeader");
|
|
|
11
12
|
const useListenForTabContentScroll_1 = require("./hooks/useListenForTabContentScroll");
|
|
12
13
|
exports.Tabs = Object.assign(TabsContainer_1.TabsContainer, {
|
|
13
14
|
FlatList: TabFlatList_1.TabFlatList,
|
|
15
|
+
FlashList: TabFlashList_1.TabFlashList,
|
|
14
16
|
Masonry: TabMasonry_1.TabMasonry,
|
|
15
17
|
Lazy: react_native_collapsible_tab_view_1.Tabs.Lazy,
|
|
16
18
|
ScrollView: TabScrollView_1.TabScrollView,
|