mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Ajout traque-app
This commit is contained in:
26
traque-app/components/input.js
Normal file
26
traque-app/components/input.js
Normal file
@@ -0,0 +1,26 @@
|
||||
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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user