-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformInput.js
42 lines (40 loc) · 1.02 KB
/
formInput.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Image
} from 'react-native';
export default class FormInput extends React.Component {
render() {
return (<View style={styles.signinFormInput}>
<View style={styles.signinFormInput}>
<Text style={styles.signinFormInputLabel}>{this.props.label}:</Text>
<Text style={styles.signinFormInputText}>{this.props.placeholder}</Text>
</View>
</View>)
};
}
const styles = StyleSheet.create({
signinFormInputText: {
width: '67%',
height: 33,
borderRadius: 10,
borderWidth: 1,
padding: 10,
flexDirection: 'row',
fontFamily: 'PT-Sans-Caption',
alignItems: 'center',
},
signinFormInputLabel: {
width: '33%',
flexDirection: 'row',
fontFamily: 'PT-Sans-Caption',
alignItems: 'center',
},
signinFormInput: {
flexDirection: 'row',
marginBottom: 5,
},
});