Skip to content

Commit

Permalink
adding android Platform check
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Aug 30, 2022
1 parent 93d3bc0 commit 39c269a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Libraries/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ const Text: React.AbstractComponent<
{...restProps}
{...eventHandlersForText}
disabled={_disabled}
accessible={accessible == null ? _hasOnPressOrOnLongPress : _accessible}
accessible={
accessible == null && Platform.OS === 'android'
? _hasOnPressOrOnLongPress
: _accessible
}
accessibilityState={_accessibilityState}
allowFontScaling={allowFontScaling !== false}
ellipsizeMode={ellipsizeMode ?? 'tail'}
Expand Down

0 comments on commit 39c269a

Please sign in to comment.