function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from "react";
import Input from "../input/input";
import { Platform } from "react-native";
/** The Textarea component is a component that is used to add multiline support for text inputs. **/
const Textarea = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(({
  rows = 4,
  ...rest
}, textareaRef) => {
  return /*#__PURE__*/React.createElement(Input, _extends({
    multiline: true,
    inputMode: "text",
    textAlignVertical: "top",
    ref: textareaRef,
    numberOfLines: rows,
    height: Platform.OS !== "android" ? 100 : undefined
  }, rest));
}));
Textarea.displayName = "Textarea";
export default Textarea;
//# sourceMappingURL=textarea.js.map