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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-customized-box

v1.1.0

Published

React Native Customized Input Box is very simple and easy to use.

Downloads

33

Readme

react-native-customized-box · Version License Downloads DocsPassing

React Native Customized Box is very simple and easy to use.

Content

Getting started

Prerequisites

  • Node (version 12 or greater).
  • Yarn (version 1.5 or greater).
  • React, React-Native should be installed
  • A fork of the repo (for any contributions).

Installation

Using NPM

npm i --save react-native-customized-box

Using Yarn

yarn add react-native-customized-box

Overview

📖 Below we provide examples with code how to use!

import CustomBox from "react-native-customized-box";

► Example - 1

→ Box fully customizable

| | | | :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | | | |

Code Snippet ↓

      <CustomBox
        placeholder={"Username"}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
        boxStyle={{ borderRadius: 40, borderWidth: 2 }}
      />
      <CustomBox
        placeholder={"Password"}
        toggle={true}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
        boxStyle={{ borderRadius: 40, borderWidth: 2, borderStyle: "dotted" }}
      />

► Example - 2

→ Toggle feature enabled

| | | | :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | | | |

Code Snippet ↓

      <CustomBox placeholder={"Username"} />
      <CustomBox placeholder={"Password"} toggle={true} />

► Example - 3

→ Box color change while focusing

| | | | :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | | | |

Code Snippet ↓

      <CustomBox
        placeholder={"Username"}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
      />
      <CustomBox
        placeholder={"Password"}
        toggle={true}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
      />

► Example - 4

→ Label and Required option enable to give error on condition

| | | | :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | | | |

Code Snippet ↓

      <CustomBox
        placeholder={"Username"}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
        boxStyle={{ borderRadius: 40, borderWidth: 2, borderStyle: "dashed" }}
        inputStyle={{ textAlign: "center", fontWeight: "bold", color: "red" }}
        labelConfig={{
          text: "Username",
          style: {
            color: "#1f5212",
            fontWeight: "bold",
          },
        }}
        requiredConfig={{
          text: "*This is Required",
        }}
      />
      <CustomBox
        placeholder={"Password"}
        toggle={true}
        boxColor={"dodgerblue"}
        focusColor={"#33ff00"}
        boxStyle={{ borderRadius: 40, borderWidth: 2 }}
        inputStyle={{ fontWeight: "bold", color: "red" }}
        labelConfig={{
          text: "Password",
          style: {
            color: "#0e0e21",
            fontWeight: "bold",
          },
        }}
        requiredConfig={{
          text: <Text>*Add Custom Message and decoreate your own</Text>,
          style: { textAlign: "center", textDecorationLine: "underline" },
        }}
      />

Method and Props Configuration

🔧 Below are the method which you can use to customized the Box in your style

| Method | Type | Description | | :--------------- | :------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | width | Number | This is not *Mandatory By default set to 300 but you can change and add your own | | height | Number | This is not *Mandatory By default set to 50 but you can change and add your own | | placeholder | String | Provide text for the Placeholder | | toggle | Boolean | Provide True to display SHOW/HIDE by default set to False | | boxColor | String | Provide Color for the InputBox by default color set to silver | | focusColor | String | Provide Color for change the box color while focusing the InputBox | | boxStyle | Object | Provide custom style/decoration for the InputBox | | inputStyle | Object | Provide custom style/decoration for the Text inside the InputBox | | labelConfig | Object | text: Provide text for the Label (String) style: Provide custom style for the Label (Object) | | requiredConfig | Object | text: Provide custom mandatory message to display like(*This is Required) you can add your own (String) style: Provide custom style for the required text (Object) | | values | String | You can use this to set predefine values or get the current InputBox value | | onChangeText | Function | Function like onChangeText |

Author

Thank You All 🙏🏻

Made with 🖤 by

Author : Rishu Chowdhary

Email : [email protected]

License

MIT License 📄

This project is licensed under the MIT License - see the LICENSE.md file for details