rn-custom-radio-button

1.0.0 • Public • Published

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 Name Data Type Description
length number The number of radio buttons in the group
--------- --------- ----------------------------------------
radioBoxStyle string Style for the radio button container
--------- --------- ----------------------------------------
radioButtonStyle string Style for individual radio buttons
--------- --------- ----------------------------------------
containerStyle string Style for the container that holds the radio buttons
--------- --------- ----------------------------------------
options array An 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.

Package Sidebar

Install

npm i rn-custom-radio-button

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

6.55 kB

Total Files

3

Last publish

Collaborators

  • ittechxpert