1.0.3 • Published 2 years ago

react-native-fieldset v1.0.3

Weekly downloads
31
License
UNLICENSED
Repository
github
Last release
2 years ago

FieldSet

Installation

npm install react-native-fieldset

Usage:

import React from 'react';
import FieldSet from 'react-native-fieldset';
import { View, Text } from 'react-native';

//...
  return (
    <View>
      <FieldSet label="Fieldset label">
        <Text>Field Set Body</Text>
      </FieldSet>
    </View>
  );
//...

Api Reference

PropertyTypeDefaultDescriptionRequired
labelString"FieldSet-label"Label for fieldsetYes
labelBackgroundColorString'#fff'background color for label ViewNo
labelColorString'#000'Text Color of labelNo
childrenReact Node<Text>FieldSet-Body</Text>things to render inside fieldsetYes
borderColorString'#777'color of border of fieldsetNo
labelFontSizeNumber11.4fontsize of label(Greater fontsize may not not look good)No
labelStyleObject{}style of label textNo
labelPositionString(enum) start, center, end'start'position of labelNo
twoLabelBooleanfalseCan add label both the sideNo
label2String"Fieldset-label2"label of second stringNo
labelStyle2Object{}style of second labelNo

Contact me:

Email: mufaddalhamidofficial@gmail.com

Website: behlahinfotech.com