2.0.0 • Published 2 years ago

mhpackage v2.0.0

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

Good morning, Everyone.

This is my personal package and it containes following:


You can use it if you want.

To use it just run -

npm install mhpackage

FieldSet

Usage:

import React from 'react';
import { FieldSet } from 'mhpackage';
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
2.0.0

2 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago