Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Is there a way to open a TextInput's builtin/system defined contextmenu programatically in Typescript React Web?

$
0
0

I have a web app with Typescript React. I'm using the builtin TextInput, like this:

return (<View      style={[        style.inputView,        {borderColor: primaryColor, height: 40}      ]}><TextInput        value={message}        onChangeText={(text) => onChangeMessage(text)}        style={{          borderRadius: 10,          ...        }}       />      { handle the submit with onPress  }</View>);

I guess under the hood the TextInput has a contextmenu. Is there a way I can open that menu from the code, without a mouse click event?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>