npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

rn-form-kit

v1.0.0

Published

A collection of highly performant, reusable form components for React Native.

Readme

RN Form Kit

An easy-to-use React Native form kit designed to save time by simplifying form creation with dynamic fields and minimal configuration.

License

MIT

Features

  • ⚡ Dynamic form rendering from config
  • 🧠 Minimal setup (just state + field name)
  • 🎯 Built-in support for multiple field types
    • Input
    • Password
    • Dropdown
    • Radio
    • Checkbox
    • Time (single & range)
  • 🎨 Customizable styles
  • 🔄 Controlled state handling
  • 📱 Optimized for React Native

Version

1.0.0

👨‍💻 Author

Component Props Reference

🔤 Field Type Input: Props (Input / Password / Multiline / Email)

| Parameter | Type | Description | :-------- | :------- | :------------------------- | | value | string | Required. | | handleOnChange | function | Required. Function to update value. Argumensts includes key,value,type?: start|end | inputType | string | Required. Type of input (input, password, etc.)| | placeholder | string | Type of input (input, password, etc.)| | label | string | Label shown above input| | required | boolean | Marks field as required | | error | string | Error message for each field | | theme | light | dark | Theme styling | | inputBoxStyle | TextStyle | Custom label style | | labelStyle | ViewStyle | Theme styling | | multilineHeight | number | Height for multiline input | | inputProps | TextInputProps | Native TextInput props | | eyeIconProps | eyeIconProps | { size?: number; style?: TextStyle } Customize password toggle icon |

🔤 Field Type Time: Props (Single / Range)

| Parameter | Type | Description | :-------- | :------- | :------------------------- | | value | string | Required. | | handleOnChange | function | Required. Function to update value. Argumensts includes key,value,type?: start|end | required | boolean | Marks field as required | | mode | string | single or range | | placeholder | string | string| | label | string | Label shown above input| | error | string | Error message for each field | | theme | string | lightor dark | Theme styling | | inputBoxStyle | TextStyle | Custom label style | | labelStyle | ViewStyle | Theme styling | | selectedTextStyle | TextStyle | Styling selected text | | optionStyle | ViewStyle | Styling options container in list | | optionTextStyle | optionTextStyle | Styling option text in list |

🔤 Field Type Radio: Props

| Parameter | Type | Description | :-------- | :------- | :------------------------- | | value | string | Required. | | option | Array ofObject {label:string,value:string} | Required. | | handleOnChange | function | Required. Function to update value. Argumensts includes key,value | required | boolean | Marks field as required | | inputBoxStyle | TextStyle | Custom label style | | label | string | Label shown above input| | error | string | Error message for each field | | theme | string | lightor dark | Theme styling | | labelStyle | ViewStyle | Theme styling | | selectedBtnStyle | ViewStyle | Styling selected btn style | | radioBtnStyle | ViewStyle | Styling selected radio btn style | | optionLabelStyle | TextStyle | Styling selected radio label option style |

🔤 Field Type Checkbox: Props

| Parameter | Type | Description | :-------- | :------- | :------------------------- | | value | string | Required. | | option | Array ofObject {label:string,value:string} | Required. | | handleOnChange | function | Required. Function to update value. Argumensts includes key,value | inputBoxStyle | TextStyle | Custom label style | | checkboxStyle | ViewStyle | Styling checkbox btn | | selectedBoxStyle | ViewStyle | Styling selected checkbox btn | | label | string | Label shown above input| | labelStyle | ViewStyle | Theme styling | | required | boolean | Marks field as required | | error | string | Error message for each field | | theme | string | lightor dark | Theme styling | | optionLabelStyle | TextStyle | Styling selected radio label option style |

🔤 Field Type Date: Props

| Parameter | Type | Description | :-------- | :------- | :------------------------- | | handleOnChange | function | Required. Function to update value. Argumensts includes key,value | inputBoxStyle | TextStyle | Custom label style | | dateTextStyle | TextStyle | Styling date text | | currentDateStyle | ViewStyle | Styling current date | | label | string | Label shown above input| | labelStyle | ViewStyle | Theme styling | | required | boolean | Marks field as required | | error | string | Error message for each field | | theme | string | lightor dark | Theme styling |

Demo

 const testFields = [
  {
    label: "Full Name",
    placeholder: "Enter your name",
    name: "fullName",
    type: "input",
    required: true,
    componentProps: {},
  },
  {
    label: "Email",
    placeholder: "Enter your email",
    name: "email",
    type: "input",
    required: true,
    componentProps: {
      keyboardType: "email-address",
    },
  },
  {
    label: "Address",
    placeholder: "Enter your address",
    name: "address",
    type: "multiline",
    required: false,
    componentProps: {
      numberOfLines: 4,
    },
  },
  {
    label: "Gender",
    name: "gender",
    type: "radio",
    required: true,
    componentProps: {
      option: [
        { label: "Male", value: "male" },
        { label: "Female", value: "female" },
        { label: "Other", value: "other" },
      ],
    },
  },
  {
    label: "Event Time",
    name: "eventTime",
    type: "time",
    required: true,
    componentProps: {
      mode: "range",
    },
  },
  {
    label: "Hobbies",
    name: "hobbies",
    type: "checkbox",
    required: false,
    componentProps: {
      option: [
        { label: "Cricket", value: "cricket" },
        { label: "Music", value: "music" },
        { label: "Travel", value: "travel" },
      ],
    },
  },
  {
    label: "Date of Birth",
    name: "dob",
    type: "date",
    required: true,
    componentProps: {
      mode: "date",
    },
  },
  {
    label: "Start Time",
    name: "startTime",
    type: "time",
    required: true,
    componentProps: {
      mode: "range",
      labelStyle: { color: "blue", paddingVertical: 5 },
      selectedStyle: { backgroundColor: "blue" },
      inputBoxStyle: {},
    },
  },
];
export const initialState = {
  fullName: "",
  email: "",
  address: "",
  gender: "",
  hobbies: [], // 🔥 checkbox → array
  dob: "",
  startTime: "", // single time
  eventTime: {
    start: "",
    end: "",
  }, // 🔥 range time
};
import FormBuilder from "rn-form-kit;
const MyForm=()=>{
const [input, setInput] = useState(initialState);
const [error,setError]=useState({})
return (
 <ScrollView
              style={{
                flexGrow: 1,
                height: "100%",
                marginBottom: verticalScale(100),
                paddingHorizontal: 10,
              }}
              nestedScrollEnabled
            >
              <FormBuilder
                input={input}
                fields={testFields}
                setInput={setInput}
                formError={error} // optional
              />
            </ScrollView>)
}
// You can pass error as same key value pairs as input fields name