Files
traque/mobile/traque-app/components/input.jsx
2026-02-15 19:23:29 +01:00

28 lines
658 B
JavaScript

// React
import { TextInput, StyleSheet } from 'react-native';
export const CustomTextInput = ({ style, value, inputMode, placeholder, onChangeText }) => {
return (
<TextInput
value={value}
inputMode={inputMode}
style={[styles.input, style]}
placeholder={placeholder}
multiline={false}
onChangeText={onChangeText}
/>
);
};
const styles = StyleSheet.create({
input: {
width: "100%",
padding: 15,
borderColor: '#777',
borderRadius: 12,
borderWidth: 2,
backgroundColor: '#fff',
fontSize: 20,
},
});