Files
traque/traque-app/components/input.js
Sebastien Riviere a7f047388f Ajout traque-app
2025-08-24 10:32:57 +02:00

27 lines
654 B
JavaScript

import { TextInput, StyleSheet } from 'react-native';
export default function 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,
},
});