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.
I have the following code: <SelectableText selectable={true} menuItems={["Add to note", "Comment"]} onSelection={(props) => { console.log(props) alert(props.eventType + ": " + props.content) }} style={{margin: 20}} appendToChildren={ <Text> Hello <Text onPress={() => alert('Hello World')} style={{fontWeight: 'bold'}}>World</Text> </Text> } />
and it outputs the text correctly, however, the onPress of Text component (on word: "World") does not work. If I were to have same "Hello World" Text Component outside of SelectableTextComponent, the onPress works fine.
The text was updated successfully, but these errors were encountered:
I'm trying to do something similar. I think it's related to SelectableText essentially being a TextInput under the hood. The same thing happens if you simply do:
This appears to be a duplicate of #47
In that issue, they point out the issue is only affecting iOS. I was able to confirm that I'm only seeing the issue on iOS, not Android. @georgelima I vote we close this issue to keep the discussion in #47
I have the following code:
<SelectableText selectable={true} menuItems={["Add to note", "Comment"]} onSelection={(props) => { console.log(props) alert(props.eventType + ": " + props.content) }} style={{margin: 20}} appendToChildren={ <Text> Hello <Text onPress={() => alert('Hello World')} style={{fontWeight: 'bold'}}>World</Text> </Text> } />
and it outputs the text correctly, however, the onPress of Text component (on word: "World") does not work. If I were to have same "Hello World" Text Component outside of SelectableTextComponent, the onPress works fine.
The text was updated successfully, but these errors were encountered: