Closed ram95krishh closed 4 months ago
I tried your repro but it doesn't depend on Gesture Handler in any way. I updated it to use it where it made sense to me
But it didn't crash for me then:
internally uses react-native-gesture-handler.
No component from React Native itself relies on Gesture Handler internally.
Could you prepare a repository with an app that would allow to reproduce it out of the box?
Hey @j-piasecki, thanks for checking this. I tried a hello world project with just the Animated ScrollView. Like you said the Gesture Handler is not a dependency and the app didn't crash at all. I am trying to find if some gesture listener in my project is acting up. I'll close the issue I raised as it seems unrelated to what I've reported here.. I will reopen an issue if I'm able to pinpoint the cause and if it happens to be a bug. Apologies for the confusion!
Hi @ram95krishh did you manage to find out the reason for this? I also had this issue after upgrading to support API 35 while testing it on my android 31 device
Just for future references or anyone who also encountered this issue. The issue was somehow due to the usage of kotlin version 1.8.0
We would need to update the kotlin's version to 1.9.0
Hmm, that's interesting - RNGH already adds a dependency on kotlin-stdlib
. Would it be possible for you to check if it detects the Kotlin version correctly?
Hi @j-piasecki I've just realised that it works even without the dependencies block in my app's build.gradle. What actually worked was me changing the kotlinVersion declaration in my project's build.gradle from 1.8.0 to 1.9.0.
Let me update my comment above to reflect this finding
Just for future references or anyone who also encountered this issue. The issue was somehow due to the usage of kotlin version
1.8.0
Solution
We would need to update the kotlin's version to
1.9.0
I can confirm this solves the crashing issue. Thanks!
Hi @ram95krishh did you manage to find out the reason for this? I also had this issue after upgrading to support API 35 while testing it on my android 31 device
Thanks a lot @skyplor for this message, you saved me! I was struggling since last 7 hour
Description
App crashes whenever we scroll inside a Animed.ScrollView that uses React Native Gesture Handler. Not sure if the issue is directly related to this library, I am posting it in both
react-native
github issues https://github.com/facebook/react-native/issues/45178 and here. Please upvote (š) or comment if anybody else is also facing this since theapp:checkDevelopmentRechargeDebugAarMetadata
step started mandating projects to start supporting compileSdkVersion 35 (for Android VanillaIceCream)<Animated.ScrollView.. />
internally uses react-native-gesture-handler. We recently upgraded the compileSDKVersion support to 35 as it is mandatory to support AndroidVanillaIceCream going forward..Whenever we scroll in our Animated ScrollViews it crashes the android app. Found this in the crash logs:
Thanks in advance, Rama!
Steps to reproduce
App crashes whenever scrolled inside such scroll views.
Snack or a link to a repository
https://snack.expo.dev/1XT8GU8hlsNThnmMjYB2Y
Gesture Handler version
2.14.0
React Native version
0.73.8
Platforms
Android
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
None
Build type
Debug mode
Device
Android emulator
Device model
Pixel 6
Acknowledgements
Yes