adds support for maximumLength and readOnly on TextInput