Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ class RNGestureHandlerDetectorView(context: Context) : ReactViewGroup(context) {
}

private fun detachNativeGestureHandlers() {
val registry = RNGestureHandlerModule.registries[moduleId]
?: throw Exception("Tried to access a non-existent registry")
val registry = RNGestureHandlerModule.registries[moduleId] ?: return

for (tag in nativeHandlers) {
if (!attachedHandlers.contains(tag)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface NativeProps extends ViewProps {
| undefined;

handlerTags: CodegenTypes.Int32[];
moduleId: CodegenTypes.Int32;
moduleId?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
Comment thread
coderabbitai[bot] marked this conversation as resolved.
virtualChildren: VirtualChildrenProps[];

pointerEvents?: CodegenTypes.WithDefault<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface RootViewNativeProps extends ViewProps {
}

interface NativeProps extends ViewProps {
moduleId: CodegenTypes.Int32;
moduleId?: CodegenTypes.WithDefault<CodegenTypes.Int32, -1>;
unstable_forceActive?: boolean;
}

Expand Down
Loading