// HOC to add a paste button to a text input import * as React from 'react' import { StyleSheet, TextInputProps, View, ViewStyle } from 'react-native' import TouchableDefault from 'src/components/Touchable' import { PasteAwareWrappedElementProps, withPasteAware } from 'src/components/WithPasteAware' import Paste from 'src/icons/Paste' import Colors from 'src/styles/colors' import { iconHitslop } from 'src/styles/variables' export default function withTextInputPasteAware
( WrappedTextInput: React.ComponentType
, pasteIconContainerStyle?: ViewStyle ) { class Wrapper extends React.Component
{
render() {
const { isPasteIconVisible, onPressPaste } = this.props
return (