React Native version:
Describe what you expected to happen:
Snack, code example, screenshot, or link to a repository:
same issue
Same here
This causes crashes when you build for Release
I can confirm that adding this line of code as the _first_ line in my ~/index.js has solved the problem. Weird.
import 'react-native-gesture-handler';
The same... it freeze app when focus on input....
Any fix for this yet?
I can confirm that adding this line of code as the _first_ line in my ~/index.js has solved the problem. Weird.
import 'react-native-gesture-handler';
This solved the warning for me
import 'react-native-gesture-handler';
Doesn't work for me... :(
Any ideas?
import 'react-native-gesture-handler';
doesn't work for me either
I can confirm that adding this line of code as the _first_ line in my ~/index.js has solved the problem. Weird.
import 'react-native-gesture-handler';
same error but not resolved?
same issue
I try put
1 - import 'react-native-gesture-handler' at the top of index.js
2 - YellowBox.ignoreWarnings([
'RCTRootView cancelTouches'
]);
And don't works. Any news about the solution?
I have same problem. In dev I see warnings, in production build it crashes in ios. Looks like many community packages rely on this.
react native version: 0.61.2
Same problem for me
"react": "16.8.1",
"react-native": "0.61.2",
"react-native-reanimated": "^1.3.0",
"react-native-screens": "^1.0.0-alpha.23",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^1.10.2"
+1 here. Crashing iOS release builds - RN version 0.61.2
+1 here. Crashing iOS release builds - RN version 0.61.2
same problem
Same for me
Recommendation: downgrade react-native
rewrite package.json
``` package.json
"react-native": "0.61.1",
or
react-native 0.61.2
add index.js
``` index.js
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(App));
there are no problem release builds
Recommendation: downgrade react-native
rewrite package.json
"react-native": "0.61.1",
or
react-native 0.61.2add index.js
import { gestureHandlerRootHOC } from 'react-native-gesture-handler'; AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(App));
there are no problem release builds
@YutaSugimura none of those solutions worked for me (iOS). Are there any way to fix the crashes in release mode for iOS?
Same here, it works for android but not for IOS.
Even when I do:
`import 'react-native-gesture-handler';`
... #### ...
import {gestureHandlerRootHOC} from 'react-native-gesture-handler';
AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(App));
"react": "16.9.0",
"react-native": "0.61.2",
"react-native-maps": "^0.26.1",
"react-native-reanimated": "^1.3.0",
"react-native-gesture-handler": "^1.4.1",
The YellowBox works, but it crashes the app in production, so it's not a valid solution, any updates?
I try put
1 - import 'react-native-gesture-handler' at the top of index.js
2 - YellowBox.ignoreWarnings([
'RCTRootView cancelTouches'
]);And don't works. Any news about the solution?
YellowBox.ignoreWarnings works
@scarcoco Still crashes in release builds
Have attempted the many 'react-native-gesture-handler'-related fixes that were discussed in this thread (and many others) and have not been able to make this work. This issue only crashes iOS release builds. iOS dev and Android (release and dev) work great.
I'm happy to mute the issue using YellowBox, as long as the deprecation warning for RCTRootView cancelTouches doesn't break the app entirely. I've also tried downgrading React Native to 61.1 as mentioned above but that also didn't fix it.
How can we help solve this issue? After reading source code and researching online I've yet to understand how the deprecation warning is causing the entire app to crash. https://github.com/facebook/react-native/commit/36307d87e1974aff1abac598da2fd11c4e8e23c1
Seems that @kmagiera released 1.5.0 which fixes this issue: https://github.com/kmagiera/react-native-gesture-handler/releases/tag/1.5.0
Testing now, will report back.
EDIT: Can confirm 1.5.0 fixes the RCTRootView cancelTouches issue on iOS release builds.
@andrerfneves after upgrading to 1.5.0 it seems not to show the warning in IOS dev mode anymore. Haven't tested in release mode yet.
Same as @Kamran1122 here!
After updating the dependency, I can confirm that dev builds no longer show the yellow-box.
But this still causes a crash on iOS 13+ release builds
I have the latest (v1.5.2) release of the react-native-gesture-handler
package: https://github.com/kmagiera/react-native-gesture-handler/releases/tag/1.5.2, but still see the issue
@ghoshabhi I removed the import from my index.js, updated to 1.5.2 and STILL had that issue.
I then imported it in my index.js again and the warning went away.
So you have to do both.
in 1.5.3 the issue went away for me. I did have to restart the app/bundler for it to go away after updating
This was fixed with software-mansion/react-native-gesture-handler#898 and got released in v1.5.3. Hope everyone gets to upgrade fast. 馃
Thanks @stigi it works like a charm.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Most helpful comment
Seems that @kmagiera released 1.5.0 which fixes this issue: https://github.com/kmagiera/react-native-gesture-handler/releases/tag/1.5.0
Testing now, will report back.
EDIT: Can confirm 1.5.0 fixes the RCTRootView cancelTouches issue on iOS release builds.