Open pdesign opened 1 month ago
@pdesign: hello! :wave:
This issue is being automatically closed because it does not follow the issue template.
Same issue here. This issue happens only on iOS for me. Android and Web works fine.
@pdesign why not just submitting a expo snack to help me debug it faster :(
@pdesign why not just submitting a expo snack to help me debug it faster :(
will add a code example here tomorrow
Same issue here. I tried to submit a expo snack for you but unfortunately it gets stuck in connecting for me :(
Issue: BottomSheet won't open after setting the initial index on some Android devices
Description: When initializing the BottomSheet with index={-1}, the sheet no longer opens on certain Android devices. This behavior occurs inconsistently across different devices. For instance, it works fine on a Samsung Galaxy S23 but does not work on a Samsung Galaxy J5 Pro.
Dependencies: @gorhom/bottom-sheet: 5.0.0-alpha.11 expo: ~51.0.36 react: 18.2.0, react-native: ^0.75.4,
import MyBottomSheet, {BottomSheetView} from '@gorhom/bottom-sheet';
const myRef = useRef<MyBottomSheet>(null);
function open() {
myRef.current?.collapse();
}
function close() {
myRef.current?.close();
}
<View style={styles.screen}>
<Button title='Open' onPress={open} />
<Button title='Close' onPress={close} />
<MyBottomSheet
ref={myRef}
index={-1}
snapPoints={['50%', '90%']}
>
<BottomSheetView style={styles.contentContainer}>
<Text vstyle={styles.text}>
Awesome 🎉
</Text>
</BottomSheetView>
</MyBottomSheet>
</View>
I updated it to 5.0.2, and the bug has been fixed
can confirm, updating the lib to v5.0.2 solved this issue
Bug
Environment info
Steps To Reproduce - Situation 1
Describe what you expected to happen:
Steps To Reproduce - Situation 2
Describe what you expected to happen: