We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00738d6 commit 9c17a96Copy full SHA for 9c17a96
packages/react-native-gesture-handler/src/web/handlers/GestureHandler.ts
@@ -587,12 +587,15 @@ export default abstract class GestureHandler implements IGestureHandler {
587
invokeNullableMethod(onGestureHandlerEvent, cancelEvent);
588
}
589
590
- protected ensurePropsRef(): void {
+ protected ensurePropsRef(): this is this & {
591
+ propsRef: React.RefObject<PropsRef>;
592
+ } {
593
if (!this.propsRef) {
594
throw new Error(
595
tagMessage('Cannot handle event when component props are null')
596
);
597
598
+ return true;
599
600
601
protected transformNativeEvent(): Record<string, unknown> {
0 commit comments