Skip to content

Commit 8a6f3ac

Browse files
committed
fix: dont force pressable Text on native
1 parent dacfb17 commit 8a6f3ac

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • packages/uniwind/src/components/native

packages/uniwind/src/components/native/Text.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ export const Text = copyComponentProperties(RNText, (props: TextProps) => {
2424
style={[style, props.style]}
2525
selectionColor={props.selectionColor ?? selectionColor}
2626
numberOfLines={(style as StyleWithWebkitLineClamp).WebkitLineClamp ?? props.numberOfLines}
27-
// Without onPress function Text is not clickable, so onPressIn and onPressOut are not working
28-
onPress={event => props.onPress?.(event)}
29-
suppressHighlighting={props.onPress ? props.suppressHighlighting : true}
3027
onPressIn={event => {
3128
setIsPressed(true)
3229
props.onPressIn?.(event)

0 commit comments

Comments
 (0)