Skip to content
New issue

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

[v4] Delay in mounting the bottom sheet on Android devices #1845

Open
SuhasK3 opened this issue May 25, 2024 · 0 comments
Open

[v4] Delay in mounting the bottom sheet on Android devices #1845

SuhasK3 opened this issue May 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SuhasK3
Copy link

SuhasK3 commented May 25, 2024

Bug

On Android bottom sheet mounting takes time. When user lands on the page the component is not visible for some time. The rest of the page is mounted already but the bottom sheet takes around 1 or 2 secs to mount. This issue happens intermittently and only on Android platform. I have already tried passing false to animateOnMount prop but it didn't make any effect.

Environment info

Library Version
@gorhom/bottom-sheet 4.6.1
react-native 0.72.3
react-native-reanimated 3.4.2
react-native-gesture-handler 2.14.0

Steps To Reproduce

  1. Wrap the component inside GestureHandlerRootView.
  2. Navigate to the page Bottom sheet is used on.

Describe what you expected to happen:

  1. There should not be any delay in mounting of bottom sheet. It should be visible immediately when the page this sheet resides on mounts.

Reproducible sample code

<GestureHandlerRootView style={{flex:1}}>
    <View style={{flex:1}}>
        <BottomSheet snapPoints = ['10%', '40%']>
            <BottomSheetView style={{flex:1}}>
            --------
            </BottomSheetView>
        </BottomSheet>
    </View>
</GestureHandlerRootView>
@SuhasK3 SuhasK3 added the bug Something isn't working label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant