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 @@ -11,7 +11,7 @@ export type ButtonEvent = Readonly<{
pointerType: CodegenTypes.Int32;
}>;

// @ts-ignore - Redefining pointerEvents with WithDefault for codegen, conflicts with ViewProps type but codegen needs it
/** @ts-ignore - Redefining pointerEvents with WithDefault for codegen, conflicts with ViewProps type but codegen needs it */
interface NativeProps extends ViewProps {
// The events are namespaced with `Button` because the base view config on iOS
// already registers `topPress` as a bubbling event — a direct event with the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface VirtualChildrenProps {
viewTag: CodegenTypes.Int32;
}

// @ts-expect-error WithDefault adds `| null` to the type, which doesn't align with ViewProps.pointerEvents
/** @ts-expect-error WithDefault adds `| null` to the type, which doesn't align with ViewProps.pointerEvents */
// Using Exclude to remove null from the type makes the error go away, but breaks codegen.
Comment thread
m-bert marked this conversation as resolved.
export interface NativeProps extends ViewProps {
onGestureHandlerEvent?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface RootViewNativeProps extends ViewProps {
unstable_forceActive?: boolean;
}

// @ts-expect-error WithDefault adds null for codegen, unlike ViewProps.pointerEvents.
/** @ts-expect-error WithDefault adds null for codegen, unlike ViewProps.pointerEvents. */
interface NativeProps extends ViewProps {
pointerEvents?: CodegenTypes.WithDefault<
'box-none' | 'none' | 'box-only' | 'auto',
Expand Down
Loading