PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
868 stars 171 forks source link

how to import `useCurrentTabScrollY` #295

Closed phuocantd closed 1 year ago

phuocantd commented 2 years ago

I want to use useCurrentTabScrollY like Animated Helper example but I cannot import this

Environment "react": "18.1.0", "react-native": "0.69.4", "react-native-collapsible-tab-view": "^0.70.1",

phuocantd commented 2 years ago

https://github.com/PedroBern/react-native-collapsible-tab-view/blob/main/example/src/AnimatedHeader.tsx

Bimbimz commented 2 years ago

same problem import { useCurrentTabScrollY } from '../../src/hooks' is nothing what your mean?

phuocantd commented 1 year ago

@alexpchin when I use useTabsContext then error: useTabsContext must be inside a Tabs.Container

image

nica0012 commented 1 year ago

How did you get this imported? Am I missing something?

alextbogdanov commented 4 weeks ago

I'm having the same issue

fistofzen commented 1 week ago

any solution?