-
-
Notifications
You must be signed in to change notification settings - Fork 961
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
[0.61.0-rc.0] -[RCTRootView cancelTouches]
is deprecated and will be deleted soon.
#746
Comments
@Johan-dutoit did you manage to eliminate the warning? |
I just silenced the warning for now and continued using it. |
I just noticed this too. For people new to react-native that don't know how to silence, I have this in my bootstrap so I can work through issues in the upstream repos (like this one). Now that I've subscribed to this issue so I'll get updates, I add an entry for silencing like so: YellowBox.ignoreWarnings([
//'Warning: Async Storage has been extracted',
'Battery state',
'componentWillMount',
'componentWillUpdate',
'componentWillReceiveProps',
'[location] ERROR - 0',
'Warning: DatePickerAndroid', // will be fixed with https://github.com/mmazzarolo/react-native-modal-datetime-picker/pull/262
'RCTRootView cancelTouches', // https://github.com/kmagiera/react-native-gesture-handler/issues/746
]); cheers |
it's good to silent the warning, but it's better when it's fixed ;) |
Oh absolutely @Under-Warz ! Just saying (as a person that maintains some modules) that I wasn't prepared to dive in and PR myself, and it seems like @Johan-dutoit has already provided the needed details, so in the absence of effort from myself I wasn't going to moan about it ;-). Maybe as the deprecation end time / API removal gets closer either I or someone else will go for the bonus internet points and propose a fix via a PR here |
There is the PR but closed #657 |
I'm noticing that this caused crashes on iOS though (when running on a release variant. Anyone else countered this issue? |
I had some crashes too. Adding |
I'm getting this error when focusing TextInput, and the app freezes after that. |
The crash was resolved for me by @cayodonatti suggestion. The cancelTouch thing, i just added it to the ignore warning list for now until RN fixes it. No more issues here. Sorry for your freezing error perlo. I wonder if its due to another issue? I thought the |
I've tried to add import to index.js, but it doesn't help |
As far as I've looked into it, the two things are not directly related. It seems that the cancelTouches event deprecation comes from RN core, so I've also added it to ignored warnings. This might prove to be a problem in a future release if the event is in fact removed. |
Yes it's completely separate issue |
I'm having this problem when working with Every time I try to drag the map, it keep throwing the :(
Edit: works fine on Android. ( No warnings too ) |
I try put 1 - import 'react-native-gesture-handler' at the top of index.js And don't works. Any news about the solution? |
Hi guys, I have same error. |
@wesleynfreitas
Do you have crash or warning? |
I am using RN 0.61.2 and adding |
I'm getting crashes in release builds too 😞 On the simulator in dev build, the warnings appear, when using gestures, but no crashes.
Any other suggestions? (Crash happens on iOS only, android is fine). |
@quizzy @donaldkeung @wesleynfreitas |
Thanks @David-Melo - I can suppress the warning, but my main concern is the crashing on fyi - it looks like you have a typo in your |
@perlo27 Oh... |
@kidmysoul |
Disabling error is nice but in release it still crashes. Is there any workaround for that? I tried importing |
I have the same probelm, I am using: When I test in emulator only show the alert, but in production from appstore, the application carsh. Thanks for all. |
I am still developing my app and didn't release it to production yet. I only get this yellow box warning when focusing the I have tried adding I cannot agree to use the method to ignore yellow box warning as it should be a real problem which blocks the way to release the app. Hoping someone can find a solution to fix this error. |
@JuanCamilo0809 did you test the |
#796 is in progress I think, to just fix this. But @zaynv I would never trust a build I had only checked on the Simulator. The Android Emulators are full VMs and give you a good idea things are okay but the Simulator is a completely different style of simulation. I've had release builds that only failed on devices |
I found a good solution for this if you encountered in ios 13 simulator https://forums.developer.apple.com/thread/122972 It could be a temporary fix, but I found it helpful. |
Same here, it works for android but not for IOS.
The YellowBox works, but it crashes the app in production, so it's not a valid solution, any updates? |
+1 Crashes for me too on production (iOS/RN 0.61.2). My code: require('react-native-gesture-handler')
const {gestureHandlerRootHOC} = require('react-native-gesture-handler')
AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(App)) Any fix? |
Hi, this is crashing for me on iOS Release build too, also react-native 0.61.2 and react-native-gesture-handler 1.4.1. Adding Here are the crash details:
|
Is this something that can be tested before an app is published to the app store? Would doing a release build and then manually installing the build onto a physical device be enough to test it or is this a crash that only happens when the app is downloaded from the store? |
For me it was crashing on local release builds on physical devices reproducibly, especially when closing a drawer |
Sorry to say this hasn't worked for me. I've upgraded to 1.5.0 & done a full clean release build. What works as a temporary fix is the suggestion from @jjv360
|
@jsancho @mikehardy Note: Remember to update the ios folder pods and rebuild the project. |
EDIT: confirmed v1.5.0 is working after performing a deep clean of local dev env as suggested in #746 (comment) @mikehardy @leosena777 Have deleted Perhaps I still don't have the magic combination of deps.
Note: warning is generated when either tapping outside of a focused TextInput, or tapping outside of an open react navigation drawer to dismiss it. Note2: adding Thanks for reading! |
I tested it on iOS, by tapping outside a navigator to dismiss it. It's gone. I suspect you still have dirty DerivedData or something - the caching on iOS builds is brutal. Do the full clean with |
you're 100% right on this, sorry I mixed up things by having too many tabs opened! |
It worked for me. Thanks! These are the steps I did:
|
@mikehardy Yep, I was indeed stuck in cache-land. A deep clean seems to have worked. v1.5.0 fix confirmed. Thanks for the info! I suspect the culprit was the |
Great - sounds like we're 100% confirmed working then on the deprecation fix so far @kmagiera - nice! |
It had the same problem but it updated the package and it was fixed 🙏 😄 |
My app still crashes whenever I make any gesture based move. I have tried importing at top of index.js, upgrading to 1.5.0, clean building and still nothing. Happens only in release version on iOS :-( EDIT: |
For those trying out Please upgrade to version 1.5.0 or later. This issue was fixed in this commit I think it's fair to close this issue now, @Johan-dutoit ? |
Seems resolved. |
New warning in the latest React Native RC.
Relevant code:
https://github.com/kmagiera/react-native-gesture-handler/blob/8f0b33f5e93fe71b968da3a51c2f6d91a0f91996/ios/RNGestureHandlerManager.m#L162
The text was updated successfully, but these errors were encountered: