react-native-simi-comps
Version:
Simple Minimal Components for React Native
26 lines • 999 B
JavaScript
import { __assign, __rest } from "tslib";
import React from "react";
import { TextInput as DefaultTextInput } from "react-native";
import useThemeColor from "../useThemeColor";
export default function Input(props) {
var style = props.style, otherProps = __rest(props, ["style"]);
var color = useThemeColor("text");
var borderColor = useThemeColor("border");
var placeholderTextColor = useThemeColor("placeholder");
return (React.createElement(DefaultTextInput, __assign({ style: [
{
color: color,
borderColor: borderColor,
borderWidth: 1,
borderRadius: 5,
paddingHorizontal: 10,
paddingVertical: 7,
marginVertical: 4,
borderStyle: "solid",
fontSize: 16,
flexGrow: 1
},
style,
], placeholderTextColor: placeholderTextColor }, otherProps)));
}
//# sourceMappingURL=Input.js.map