Closed fritzfr closed 4 years ago
You are using createRef()
Maybe this is the issue
Note that if you wish to use React.createRef() support for interactions you need to use v.16.3 of React
https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html
I'm using createRef()
because the example I mentioned also uses it. And I am on React 16.9.
Hi, you need to include
onPress={() => bottomSheetRef.current.snapTo(1)}>
Like this:
<TouchableOpacity
pointerEvents="none"
onPress={() => bottomSheetRef.current.snapTo(1)}>
<Header />
</TouchableOpacity>
Hi,
I was wondering if it is at all possible to open the content by a tap on the visible header (basically how on Spotify App, the player at the bottom works).
The following is based on the ideas from the Imperative example (https://github.com/osdnk/react-native-reanimated-bottom-sheet/blob/master/Example/Imperative.js). My custom Tab Bar which renders the Header above the react-navigation tab bar:
However, nothing is happening on a tap on the header. I'm clueless on where to look for the problem. Any ideas? In addition, it would be cool to hide the header when the content is expanded. Currently I'm solving this by snapping to > 100% such that the header is off-screen.