-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathLinkField.android.js
43 lines (37 loc) · 928 Bytes
/
LinkField.android.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
43
'use strict';
import React from 'react';
let { View, StyleSheet, TextInput, Text} = require('react-native');
import {LinkComponent} from '../lib/LinkComponent';
export class LinkField extends React.Component{
render(){
return(<LinkComponent
{...this.props}
labelStyle={[formStyles.fieldText, this.props.labelStyle]}
containerStyle={[
formStyles.fieldContainer,
formStyles.horizontalContainer,
this.props.containerStyle]}
/>
)
}
}
let formStyles = StyleSheet.create({
fieldContainer:{
borderBottomWidth: 1,
borderBottomColor: '#C8C7CC',
backgroundColor: 'white',
justifyContent: 'center',
height: 45
},
horizontalContainer:{
flexDirection: 'row',
justifyContent: 'flex-start'
},
fieldText:{
fontSize: 34/2,
paddingLeft: 10,
paddingRight: 10,
justifyContent: 'center',
lineHeight: 32
},
});