question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v4] | not working with native stack react navigation(Solved)

See original GitHub issue

Bug

The bottom sheet was not a problem but the react-native-gesture-handler was.I just solved it by reinstalling gesture-handler…

When using the Bottom sheet with react-navigation’s “native stack”, the bottom Sheet is not draggable on android(Works fine on ios👍). But with a normal stack navigator, everything is fine.

with native stack:-

https://user-images.githubusercontent.com/68942390/130320716-b2883960-7398-447f-a094-4590d3501f2c.mp4

with normal stack:-

https://user-images.githubusercontent.com/68942390/130320769-e5ef7750-3435-4fd2-b60d-3ef5269025f4.mp4

Environment info

@gorhom/bottom-sheet”: “^4.0.0-alpha.29”, “@react-navigation/native”: “^6.0.1”, “@react-navigation/native-stack”: “^6.1.0”, “react-native-reanimated”: “^2.2.0”, “react-native-gesture-handler”: “^1.10.3”, “@react-navigation/native”: “^6.0.1”,

Steps To Reproduce

1.use import { createNativeStackNavigator } from '@react-navigation/native-stack' const Stack = createNativeStackNavigator()

Describe what you expected to happen:

bottom sheet to work as expected

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

33reactions
U-OKcommented, Dec 8, 2021

Ok. guys, I solved this issue too. To solve this you need to wrap your BottomSheetMovalProvier in GestureHandlerRootView. In my case it’s look like that: image I hope this help you

0reactions
NewvilleMediacommented, Nov 7, 2022

I wish this worked

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >
expo - '@react-navigation/stack' has stopped working with error
I have been successfully using React Navigation Stack (V5) for about a week now and today my app will not build as the...
Read more >
React Native Navigation: Tutorial with examples
In this React Native Navigation tutorial, we'll show you some examples of navigation patterns you can implement with React Navigation.
Read more >
How To Use Routing with React Navigation in React Native
First, create a new React Native app by entering the following command in your terminal: npx react-native init MySocialNetwork --version 0.63.2.
Read more >
Navigating Between Screens - React Native
React Navigation provides a straightforward navigation solution, with the ability to present common stack navigation and tabbed navigation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found