@eslam-elmeniawy/react-native-common-components
Version:
Common `ReactNative` components packed in library for usage in projects.
19 lines (18 loc) • 571 B
JavaScript
;
// External imports.
import * as React from 'react';
import { TextInput as PaperTextInput } from 'react-native-paper';
import { jsx as _jsx } from "react/jsx-runtime";
/**
* Wrapper around react-native-paper TextInput for testability.
* This can be mocked in tests while maintaining the same API.
*/
const TextInput = /*#__PURE__*/React.forwardRef((props, ref) => {
return /*#__PURE__*/_jsx(PaperTextInput, {
...props,
ref: ref
});
});
TextInput.displayName = 'TextInput';
export default TextInput;
//# sourceMappingURL=PaperTextInput.js.map