mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-04-11 00:30:19 +02:00
eslint for mobile + new maps API key + cleaning
This commit is contained in:
27
mobile/traque-app/components/input.jsx
Normal file
27
mobile/traque-app/components/input.jsx
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user