Skip to content

Commit 8a88457

Browse files
committed
fix: select onPress according to announced merging specifications
1 parent aae4a42 commit 8a88457

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/render-html/src/TBlockRenderer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import getNativePropsForTNode from './helpers/getNativePropsForTNode';
1010

1111
export const TDefaultBlockRenderer: TDefaultRenderer<TBlock> = ({
1212
children: overridingChildren,
13-
onPress,
1413
...props
1514
}) => {
1615
const TNodeChildrenRenderer = useTNodeChildrenRenderer();

packages/render-html/src/helpers/getNativePropsForTNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function getNativePropsForTNode<
2929
...propsFromModel,
3030
...nativeProps,
3131
...switchProp,
32-
onPress,
32+
onPress: syntheticOnPress,
3333
style: [style, nativeProps?.style, switchProp.style],
3434
testID: tnode.tagName || undefined
3535
};

0 commit comments

Comments
 (0)