1.1.0 • Published 7 months ago

react-native-signup-checkbox v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

react-native-signup-checkbox

React Native component for sign up check list

Android ExampleIOS Example

Getting started

yarn add react-native-signup-checkbox

or

npm install react-native-signup-checkbox --save

On iOS, install cocoapods:

npx pod-install

Usage

Example

import { CheckTerms, CheckTermsProps } from "react-native-signup-checkbox";
const CheckTermsData: CheckTermsProps["data"] = [
  {
    index: 0,
    label: "hi",
    link: "https://google.com",
    necessary: true,
    linkLabel: "detail",
    checked: false,
  },
  {
    index: 1,
    label: "hi",
    link: "https://google.com",
    necessary: true,
    linkLabel: "detail",
    checked: false,
  },
  {
    index: 2,
    label: "hi",
    link: "https://google.com",
    necessary: false,
    linkLabel: "detail",
    checked: false,
  },
  {
    index: 3,
    label: "hi",
    necessary: false,
    checked: false,
    link: "",
  },
];
const [toggleCheckBox, setToggleCheckBox] = useState(false);

const [termsEnable, setTermsEable] = useState(false);
return (
  <SafeAreaView>
    <View style={{ backgroundColor: "orange" }}>
      <CheckTerms
        data={CheckTermsData}
        essential={"essential"}
        optional={"optional"}
        selectAll={"selectAll"}
        setTermsEable={setTermsEable}
      />
    </View>
  </SafeAreaView>
);

Props

Common Props

Prop nameTypeDescription
dataarrayCheckTermsProps'data' - show the example.
essentialstringessential string
optionalstringoptional string
selectAllstringselectAll string
setTermsEableReact.Dispatch<SetStateAction>setState

License

The library is released under the MIT licence. For more information see LICENSE.

1.1.0

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago