UNPKG

react-native-paper-tabs

Version:

Smooth and fast cross platform Material Design Tabs for React Native Paper

15 lines (14 loc) 367 B
"use strict"; import * as React from 'react'; import { useContext } from 'react'; export const TabsContext = /*#__PURE__*/React.createContext({ goTo: () => null, index: 0 }); export function useTabNavigation() { return useContext(TabsContext).goTo; } export function useTabIndex() { return useContext(TabsContext).index; } //# sourceMappingURL=context.js.map