UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

19 lines (18 loc) 641 B
import React from 'react'; import Reanimated from 'react-native-reanimated'; interface TabControllerContext { initialIndex?: number; selectedIndex?: number; items?: any[]; itemsCount: number; asCarousel?: 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;