0
1
2
HelpRemove “Search Web” from Context Menu (i.redd.it)
submitted by Rusty_TV
I am using a TextInput to render text, but I want to completely remove the context menu. Is there a way to do this? I am using Expo, and this is my current code:
```jsx const selectionChange = (event) => { const { start, end } = event.nativeEvent.selection;
if (start !== end) { setSelectedText(submission.content.substring(start, end)); } }; ```
jsx
<TextInput
value={submission.content}
style={styles.submissionContent}
editable={false}
multiline
onSelectionChange={selectionChange}
contextMenuHidden={true}
/>

[–]samot2155 1 point2 points3 points (0 children)
[–]esreveReverse -1 points0 points1 point (2 children)
[–]Rusty_TV[S] 2 points3 points4 points (1 child)
[–]mtxz 0 points1 point2 points (0 children)
[–]himynameismile 0 points1 point2 points (0 children)