@gechiui/block-editor
Version:
35 lines (32 loc) • 815 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { createElement } from "@gechiui/element";
/**
* External dependencies
*/
import { TextInput } from 'react-native';
/**
* GeChiUI dependencies
*/
import { __ } from '@gechiui/i18n';
export default function URLInput(_ref) {
let {
value = '',
autoFocus = true,
onChange,
...extraProps
} = _ref;
/* eslint-disable jsx-a11y/no-autofocus */
return createElement(TextInput, _extends({
autoFocus: autoFocus,
editable: true,
selectTextOnFocus: true,
autoCapitalize: "none",
autoCorrect: false,
textContentType: "URL",
value: value,
onChangeText: onChange,
placeholder: __('Paste URL')
}, extraProps));
/* eslint-enable jsx-a11y/no-autofocus */
}
//# sourceMappingURL=index.native.js.map