UNPKG

react-native-form-generator

Version:
46 lines (38 loc) 941 B
'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, flex:2 }, });