1.0.0 • Published 11 months ago

rn-custom-radio-button v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

rn-custom-radio-button A customizable RadioButton screen component for React Native projects. Use this open source library in your fresh React Native project for instant startup.

Table of Contents

Installation

To use rn-custom-radio-button in your React Native project, simply install it using npm or yarn:

npm install rn-custom-radio-button
or
yarn add rn-custom-radio-button

Usage

To use the RadioButton component in your app, import it from the rn-custom-radio-button package and render it as the second component in your app after splash screen. You can customize the appearance and behavior of the RadioButton by passing in props.

How to use

import RadioButton from "rn-custom-radio-button";

function App() {
  return <RadioButton length={2} />;
}

Props

The RadioButton component accepts the following props:

Prop NameData TypeDescription
lengthnumberThe number of radio buttons in the group
----------------------------------------------------------
radioBoxStylestringStyle for the radio button container
----------------------------------------------------------
radioButtonStylestringStyle for individual radio buttons
----------------------------------------------------------
containerStylestringStyle for the container that holds the radio buttons
----------------------------------------------------------
optionsarrayAn array of options for the radio buttons

Contributors

We would like to thank the following developers for their contributions to this project:

To all our contributors, thank you for your hard work and dedication!

License

This package is released under the MIT License.