@uiw/react-native
Version:
UIW for React Native
16 lines • 370 B
JavaScript
import React from 'react';
import { TextInput } from 'react-native';
import { useTheme } from "@shopify/restyle";
const Input = ({
value,
onChange,
...others
}) => {
const theme = useTheme();
return <TextInput value={value} onChangeText={value => {
onChange?.(value);
}} style={{
color: theme.colors.text
}} {...others} />;
};
export default Input;