Nothing works on the screen on some android devices if I will try to use this component.
See original GitHub issueBug
Hi,
I use BottomSheetBackdrop component and on some devices when the screen is mounted, no button works on that screen, it feels like something is overlayed on top of that. This bug only exists on android’s some devices.
For example, it doesn’t work: on Huawei mate 8 version 7.0, Nokia 2.1 version 10, Samsung galaxy s10 version 10, techno camon 15 version 10.
On the other hand, I tested it on my phones: Meizu note 5 version 7.0, Google pixel 3 version 10 and everything works perfectly( as I said even IOS doesn’t have such a problem ).
Thanks.
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | ^3.6.6 |
react-native | 0.64.1 |
react-native-reanimated | ^2.2.0 |
react-native-gesture-handler | ^1.10.3 |
Steps To Reproduce
- Run codes
- Try to touch anything on the screen when you use this library
Describe what you expected to happen:
- screen should be clickable.
Reproducible sample code
function ScreenComponent() {
const bottomSheetRef = useRef<BottomSheet>(null);
const [isInsightActive, setIsInsightActive] = useState(true);
const { bottom } = useSafeAreaInsets();
const onIsItHelpfulPress = useCallback(() => {
bottomSheetRef.current?.expand();
}, []);
return (
<Screen stretch>
<Header withTitle />
<Row justifySpaceBetween alignCenter px={7} mt={7}>
<Touchable active={isInsightActive} onPress={onIsItHelpfulPress}>
<Text fontSize={4} fontWeight={3}>
Insights
</Text>
</Touchable>
</Row>
<BottomSheet
ref={bottomSheetRef}
index={-1}
snapPoints={[0, 200]}
backdropComponent={BottomSheetBackdrop}
>
<Column mt={7} stretch paddingBottom={`${bottom}px`}>
<Text fontSize={5} fontWeight={3} px={7}>
Is this helpful?
</Text>
</Column>
</BottomSheet>
</Screen>
);
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:25 (4 by maintainers)
Top Results From Across the Web
Android Touchscreen Not Working? 7 Tips, Fixes, and ...
Is your Android device's touchscreen not working? Here are several tips to fix a broken touchscreen or work around it.
Read more >Fix a screen that isn't working right on Android - Google Support
Fix a screen that isn't working right on Android. Try the solutions below if your phone screen: Doesn't respond; Flickers; Jumps; Flashes; Shows...
Read more >How To Fix Unresponsive Touch Screen Android Phone (Full ...
The first thing we are going to do is use the star codes to check if the touchscreen of the Android phone or...
Read more >ANDROID PHONES: BLACK SCREEN, KEEPS RESTARTING ...
If these 15 methods do not work you can try Reiboot to easily fix most Android problems: https://bit.ly/2Z8rA0yMake sure to follow the 15 ......
Read more >Android emulator shows nothing except black screen and adb ...
Try starting the device and if you see "Android" pop up onscreen you're running. The first boot usually takes awhile so just hang...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like I encountered this issue on
4.0.3
. This will happen on some Android devices but not others. The Samsung S10 reproduces this bug 100% of the time for example. Code looks like so:edit: After some more digging, a lot of the issues are happening with Android 10 devices.
I’m having the same issue with the latest 4.1.0 version when using dynamic snap points. It works perfectly fine without dynamic snap points.