Closed anisurrahman072 closed 2 months ago
Hello, seems like it was an issue of Import. Basically, the guide/resources were not pretty clear on how to import stuffs to activate "goBackGesture"!
β So I'm using this one now π
import { NavigationContainer } from '@react-navigation/native'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { createNativeStackNavigator } from 'react-native-screens/native-stack'
import { GestureDetectorProvider } from 'react-native-screens/gesture-handler'
β Instead of this π
import { NavigationContainer } from '@react-navigation/native'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import { GestureDetectorProvider } from 'react-native-screens/gesture-handler'
So, now I see I can refer (inspect in VScode by CMD + Mouse Left Button) "goBackGesture" props easily π
But when I ran this, I found a NEW ERROR π (Could you please help here @WoLewicki , @tboba, @piaskowyk)
Finally solved it by using "react-native-reanimated": "3.9.0-rc.0" ---> It is not yet a stable version. It is still in pre-release.
A day in a battleship. Finally won the war π₯
Hi @anisurrahman072, that's awesome! π Yeah, this feature is currently working only on the native-stack v5 and RC version of Reanimated, but we're preparing all of the stuff to make this stable! β€οΈ
If you still have any questions, I'm happy to help. Cheers
Description
Hi @WoLewicki , @tboba, @piaskowyk great work on "goBackGesture" π₯
By any chance I followed all of your instructions to create "Screen transition based on gesture" in a fresh bare React Native app but I see the output is not like yours in Youtube/ Pull Request videos.
Steps to reproduce
Dependencies & their Versions
Code of App.js below π
Expected output from your video π
https://github.com/software-mansion/react-native-screens/assets/40535268/8ab9fe99-e1a7-46b2-a30f-1b87abeffc71
The output from my side (Gesture & Swipe not working!) π
https://github.com/software-mansion/react-native-screens/assets/40535268/d4f208e7-dd75-4e23-922e-ad3bffa873aa
If you guys can help on it then it would be very helpful π. Also I didn't get any complete code examples for "goBackGesture". May be I didn't find that or may that is not there yet.
Snack or a link to a repository
Issue Github Repo: https://github.com/anisurrahman072/researchRN
Screens version
^3.30.1
React Native version
0.73.6
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Real device
Device model
Symphony Z35 (Android 11)
Acknowledgements
Yes