import { jsx as _jsx } from "react/jsx-runtime";
import { TextField } from "./form/TextField.native.js";
function NumericalInput(param) {
  var {
    onValueChange = function () {},
    ...props
  } = param;
  return /* @__PURE__ */_jsx(TextField, {
    keyboardType: "decimal-pad",
    ...props,
    onChangeText: function (e) {
      var newValue = e?.replace(/[^0-9.]/g, "").replace(/(\..*)\./g, "$1");
      onValueChange(newValue);
    }
  });
}
export { NumericalInput };
//# sourceMappingURL=NumericalInput.native.js.map
