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] | [v2] Bottomsheet is blinked on tab change in android #1830

Open
amanbansal246 opened this issue May 8, 2024 · 0 comments
Open

[v4] | [v2] Bottomsheet is blinked on tab change in android #1830

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

Comments

@amanbansal246
Copy link

Bug

I have a problem on android.
Bottomsheet is blinking on tab change(see video).
It is working find on IOS.
I can't find any solution, I can't reproduce it, that is what makes it super hard to find.

Maybe someone can say the potential reason behind it as after my checking of the lib, I didn't find anything suspicious.

Here is a video from Android:

android.mov

Here is a video from IOS:

IOs.mov

Environment info

Library Version
@gorhom/bottom-sheet 4.6.1
react-native 0.73.7
react-native-reanimated 3.8.1
react-native-gesture-handler 2.16.0

Steps To Reproduce

  1. Install lib.
  2. configure everything. with Backdrop.
  3. open it via ref.

Describe what you expected to happen:

  1. It should not blink on tab change

Reproducible sample code

return (
	<>
		<StatusBar backgroundColor='transparent' translucent={true} />
		<SafeAreaView style={{ flex: 1, backgroundColor: '#570E3F' }}>
			<View style={styles.container}>
				<View style={[styles.detail, { paddingTop: inset.top }]}>
					<Text style={styles.heading}>Claims</Text>
					<Text style={styles.description}>File new claims and track the status of existing ones</Text>
				</View>
				<BottomSheet ref={bottomSheetRef} snapPoints={snapPoints} index={0}
					handleIndicatorStyle={{ backgroundColor: 'white' }}
					backgroundStyle={{ backgroundColor: 'white' }}
				>
					<ClaimsSheet />
				</BottomSheet>
			</View>
		</SafeAreaView>
	</>
);
@amanbansal246 amanbansal246 added the bug Something isn't working label May 8, 2024
@amanbansal246 amanbansal246 changed the title [v4] | [v2] Issue title [v4] | [v2] Bottomsheet is blinked on tab change in android May 8, 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