how to paste in input field react native

JavaScript
import React, { Component } from 'react';
import { TextInput as NativeTextInput } from 'react-native';

class TextInput extends Component {
  state = {
     inputWidth: '99%'
  }

  componentDidMount() {
    setTimeout(() => this.setState({ inputWidth: 'auto' }), 100);
  }

  render() {
    const { inputWidth } = this.state;

    return <NativeTextInput style={{ width: inputWidth }} />
 }
}
Source

Also in JavaScript: