@react-navigation/material-top-tabs
Version:
Integration for the animated tab view component from react-native-tab-view
12 lines (11 loc) • 427 B
JavaScript
;
import * as React from 'react';
import { TabAnimationContext } from "./TabAnimationContext.js";
export function useTabAnimation() {
const animation = React.useContext(TabAnimationContext);
if (animation === undefined) {
throw new Error("Couldn't find values for tab animation. Are you inside a screen in Material Top Tab navigator?");
}
return animation;
}
//# sourceMappingURL=useTabAnimation.js.map