You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
where textElements is an array of <Text onPress={myOnPressFn} style={{myStyle}}> elements with custom styles and highlights. However, myOnPressFn does not get called on iOS, only on Android. Why might this be?
Kind regards,
Jonas
The text was updated successfully, but these errors were encountered:
jonasfrid
changed the title
onPress events for child nodes seem to be blocked
onPress events for child nodes seem to get blocked on iOS
Feb 6, 2020
jonasfrid
changed the title
onPress events for child nodes seem to get blocked on iOS
onPress event for child nodes seem to get blocked on iOS
Feb 6, 2020
As @sbatson5 pointed out in the duplicate of this issue (#55), this seems to be a limitation because SelectableText on iOS is using TextInput (if I'm understanding this line correctly although I readily admit my Objective C is not strong)
The Android native view however is inheriting from TextView and seems to pass onPress events correctly to its children
Is there a reason the iOS native view is built on top of TextInput instead of TextView?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there! This is a great library, although I'm having some trouble with nested, styled components inside a SelectableText.
I'm doing the following:
where textElements is an array of
<Text onPress={myOnPressFn} style={{myStyle}}>
elements with custom styles and highlights. However,myOnPressFn
does not get called on iOS, only on Android. Why might this be?Kind regards,
Jonas
The text was updated successfully, but these errors were encountered: