Selection / Editing in React Native

In iOS, you can customize the selection and editing menus. It looks like this: selection_menu

In addition, the API is displayed here: https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/AddingCustomEditMenuItems/AddingCustomEditMenuItems.html

So, is this possible on React Native? I am creating a chat application where we need to enable copying messages, as well as custom menu items.

+7
react-native
source share
1 answer

In iOS, customizing the editing menu is done using the UIMenuController . However, if we look at the response repo, the only appearance of this class (to this day) can be found in the RCTTextView class .

If you want to use it for other components, you need to connect it yourself .

There are some third-party libraries .

0
source share

All Articles