Customizing the text selection toolbar in an android aplication

I’m building an application to read epub and I need to customize the popup toolbar that appears when selecting a text. I want to leave only the ‘copy’ option and add an option that calls a javascript function. It’s for Android with ionic-react.

Can someone help me?