Files
streamyfin/components/common/Input.tsx
Fredrik Burmester 0a098bf26e chore
2024-10-09 07:28:53 +02:00

19 lines
532 B
TypeScript

import React from "react";
import { TextInput, TextInputProps } from "react-native";
export function Input(props: TextInputProps) {
const { style, ...otherProps } = props;
const inputRef = React.useRef<TextInput>(null);
return (
<TextInput
ref={inputRef}
className="p-4 border border-neutral-800 rounded-xl bg-neutral-900"
allowFontScaling={false}
style={[{ color: "white" }, style]}
placeholderTextColor={"#9CA3AF"}
clearButtonMode="while-editing"
{...otherProps}
/>
);
}