- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
I am getting crash when I touch the PanGestureHandler.
return (
<PanGestureHandler
onGestureEvent={this.onGestureEvent}
onHandlerStateChange={this.onHandlerStateChange}
>
<Animated.View style={[style, panStyle]} {...rest}>
{children}
</Animated.View>
</PanGestureHandler>
);
package.json
"react-native-gesture-handler": "1.0.8",
"react": "^16.5.0",
"react-native": "^0.57.2",
android versions:
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
}
implementation "com.android.support:appcompat-v7:27.1.1"
crash log
Unsupported top level event type "onGestureHandlerStateChange" dispatched
extractEvents
ReactNativeRenderer-dev.js:2471:6
extractEvents
ReactNativeRenderer-dev.js:1016:8
runExtractedEventsInBatch
ReactNativeRenderer-dev.js:1070:4
<unknown>
ReactNativeRenderer-dev.js:2713:6
batchedUpdates$1
ReactNativeRenderer-dev.js:15311:14
batchedUpdates
ReactNativeRenderer-dev.js:2616:31
_receiveRootNodeIDEvent
ReactNativeRenderer-dev.js:2711:17
receiveEvent
ReactNativeRenderer-dev.js:2731:26
__callFunction
MessageQueue.js:349:47
<unknown>
MessageQueue.js:106:26
__guard
MessageQueue.js:297:10
callFunctionReturnFlushedQueue
MessageQueue.js:105:17
related issue: expo/expo#2067
CapitanRedBeard, apexskier, vlimag, DavitVosk, khorark and 29 moremikehardy, GollyJer, priyanka4477-ppp and nikoden-io
Metadata
Metadata
Assignees
Labels
No labels
Activity
osdnk commentedon Oct 22, 2018
Hi, @punksta
Thanks for the issue. Please, update react to '
6.6.0-alpha.8af6728
andreact-native
to0.57.3
and if it won't help, write here again :)punksta commentedon Oct 22, 2018
same here
osdnk commentedon Oct 22, 2018
@punksta
Did you try my code with these versions?
osdnk commentedon Oct 22, 2018
Could you build a showcase repo?
punksta commentedon Oct 22, 2018
@osdnk no, it's my opensource project actually.
recent code in
dev
branch. I use your library here: https://github.com/punksta/Cat-or-dog/blob/dev/src/containers/DraddingFallingV2.js#L187steps to reproduce:
if you need minimal example I can try to make it later.
punksta commentedon Oct 23, 2018
@osdnk if you need more info or smaller example, let me know.
Jyrno42 commentedon Nov 14, 2018
Having the same problem on react-native 0.57.5. I am using this library through react-navigation, if that makes a difference.
E: Fixed it by doing the patch of
UIManager.RCTView.directEventTypes
in my code as well. The patch is here in the codebase if anyone is wondering: https://github.com/kmagiera/react-native-gesture-handler/blob/master/GestureHandler.js#L46balthazar commentedon Nov 30, 2018
@osdnk Getting the same issue with a Drawer component using:
0.57.7
3.0.2
1.0.10
@Jyrno42 what versions are you using?
Jyrno42 commentedon Dec 3, 2018
0.57.5
3.0.0
1.0.9
E: So I am a bit behind your versions.
enahum commentedon Dec 3, 2018
Same issue here I'm using
the packager also crashes with
enahum commentedon Dec 3, 2018
can we re-opened this issue please?
254 remaining items