Skip to content

Commit ce70cd5

Browse files
committed
fix(ios): error after dispose of a view
1 parent 896c074 commit ce70cd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gesturehandler/gesturehandler.ios.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ export class Manager extends ManagerBase {
260260
this.manager.attachGestureHandlerToView(tag, view[handler.nativeGetterKey]);
261261
}
262262
const onInit = () => {
263+
// we need to ensure the handler is registered
264+
// in case it was dropped in dispose
265+
this.manager.registerGestureHandler(handler.native);
263266
this.manager.attachGestureHandlerToView(tag, view[handler.nativeGetterKey]);
264267
};
265268
const onDispose = () => this.manager.dropGestureHandler(tag);

0 commit comments

Comments
 (0)