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.
What happens
App uses react-native-navigation and displays SelectableText in Overlay. SelectableText has one action — Copy. Action handler copies selected text to clipboard and dismisses Overlay. Problem is that onSelection is called only on first mount of Overlay. Reopening Overlay, then selecting text and clicking on menu item does nothing: text not copied, overlay not dismissed.
What is known so far
Problem happens only on ios.
Problem is located somewhere in hitTest action in RNSelectableTextView.m
Prerequisites
iOS 11.4
react-native 0.64
react-native-selectable-text 1.5.1
What happens
App uses
react-native-navigation
and displaysSelectableText
inOverlay
.SelectableText
has one action —Copy
. Action handler copies selected text to clipboard and dismissesOverlay
. Problem is thatonSelection
is called only on first mount ofOverlay
. ReopeningOverlay
, then selecting text and clicking on menu item does nothing: text not copied, overlay not dismissed.What is known so far
Problem happens only on ios.
Problem is located somewhere in
hitTest
action inRNSelectableTextView.m
react-native-selectable-text/ios/RNSelectableTextView.m
Lines 248 to 273 in 7ab5e75
If I remove
else
branch (lines 253-269) then problem is gone, though I not yet understand what is purpose ofelse
branchThe text was updated successfully, but these errors were encountered: