UNPKG

react-navigation-stack

Version:
12 lines (10 loc) 400 B
import * as React from 'react'; import CardAnimationContext from './CardAnimationContext'; export default function useCardAnimation() { const animation = React.useContext(CardAnimationContext); if (animation === undefined) { throw new Error("Couldn't find values for card animation. Are you inside a screen in Stack?"); } return animation; } //# sourceMappingURL=useCardAnimation.js.map