When I put the bottomsheet into Modal, iOS can slide normally, Android can't slide。
<Modal>
<>
<Animated.Code
exec={onChange(
this.clampedDrawerCallbackNode,
block([
cond(
greaterOrEq(this.clampedDrawerCallbackNode, 1),
call([], () => {
console.log([${new Date()}] Drawer closed)
})
),
cond(
lessOrEq(this.drawerCallbackNode, 0),
call([], () => {
console.log([${new Date()}] Drawer opened)
})
),
])
)}
/>
<BottomSheet
callbackNode={this.drawerCallbackNode}
renderContent={() => <Content />}
renderHeader={() => <Header />}
snapPoints={[230, 0]}
/>
</>
</Modal>
When I put the bottomsheet into Modal, iOS can slide normally, Android can't slide。
@songxiaoliang Unfortunately it's not related to reanimated-bottom-sheet but directly to react-native-gesture-handler
https://github.com/kmagiera/react-native-gesture-handler/issues/139
I use the portal from react-native-paper
import { Portal } from 'react-native-paper'
Instead of a modal. The modalhost is in the root of the application so you don't need a modal to show it outside relative components.
@RichardLindhout Portal Can not achieve the effect of coverscreen,example: TabNar, Header
@songxiaoliang Can you take a screenshot, I don't understand what you mean.
Same problem here... The only solution I found was to add a stack in RootStack above TabNav...
Or toggle TabBarVisbile method of react-navigation
Check this out: https://github.com/osdnk/react-native-slack-bottom-sheet/
@hayyaun @songxiaoliang https://github.com/osdnk/react-native-slack-bottom-sheet/
Most helpful comment
@songxiaoliang Unfortunately it's not related to
reanimated-bottom-sheetbut directly toreact-native-gesture-handlerhttps://github.com/kmagiera/react-native-gesture-handler/issues/139