One of the most used features in both desktop and mobile operating systems is the clipboard for copying and pasting content. A common scenario on mobile is filling forms with lengthy text, such as long email addresses or passwords. Instead of typing it with a few typos, it would be easier to just open your contacts application and copy the email from there and paste it into your TextInput field.
This recipe will show a basic example on both Android and iOS of how we can copy and paste text inside our React Native application. In our sample app, we will have both a static Text view and a TextInput field that you can use to copy its contents to the clipboard. Also, there will be a button that outputs the contents of the clipboard to the view.