UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

19 lines (18 loc) 647 B
import React from 'react'; import Reanimated from 'react-native-reanimated'; interface TabControllerContext { initialIndex?: number; items?: any[]; itemsCount: number; asCarousel?: boolean; nestedInScrollView?: boolean; containerWidth: number; pageWidth: number; /** static page index */ currentPage: Reanimated.SharedValue<number>; /** transition page index (can be a fraction when transitioning between pages) */ targetPage: Reanimated.SharedValue<number>; setCurrentIndex: (index: number) => void; } declare const TabBarContext: React.Context<TabControllerContext>; export default TabBarContext;