We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, I can't close the bottomsheet using the button I created, here is the code and link video. Is there any other way? video: https://drive.google.com/file/d/1tqYglGS4AKyYLESECVKWwJQV6Iv8m4Eu/view?usp=sharing
code:
export const Test = () => { const bottomSheet = useRef<BottomSheetMethods>(null); return ( <GestureHandlerRootView style={{ flex: 1, backgroundColor: '#fff', }}> <TouchableOpacity onPress={() => bottomSheet.current?.open()}> <Text>open bottomsheet</Text> </TouchableOpacity> <BottomSheet ref={bottomSheet} height={500}> <View> <TouchableOpacity style={{ width: 200, height: 200, }} onPress={() => { console.log('close'); bottomSheet.current?.close(); }}> <Text>close bottomsheet</Text> </TouchableOpacity> </View> </BottomSheet> </GestureHandlerRootView> ); };
The text was updated successfully, but these errors were encountered:
No, what you have should work fine. I'll do a quick repro soon to check it out.
Thanks for reporting @Madeean also can you check if dragging the sheet down closes it
Sorry, something went wrong.
it's normal when you click out of bottomsheet or drag down the bottomsheet
i use this version "react": "18.3.1", "react-native": "0.76.5",
when I enable newArchEnabled in gradle.properties, it happens, but when I disable it, it runs normally.
No branches or pull requests
hi, I can't close the bottomsheet using the button I created, here is the code and link video. Is there any other way?
video: https://drive.google.com/file/d/1tqYglGS4AKyYLESECVKWwJQV6Iv8m4Eu/view?usp=sharing
code:
The text was updated successfully, but these errors were encountered: