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

rn-floating-label-input-component

v0.0.1

Published

a simple react native floating-label-input-component

Downloads

2

Readme

rn-floating-label-input-component

A cross-platform react-native floating label input component.

Under the hood, this library is using TextInput.

Installation

Install the library using npm or yarn:

# using npm
$ npm i rn-floating-label-input-component

# using yarn
$ yarn add rn-floating-label-input-component

Usage

import React, { useState } from "react";
import { View } from "react-native";
import FloatingLabeleInput from "rn-floating-label-input-component";

const Example = () => {
  const [userName, setUserName] = useState("");
  return (
    <View>
      <FloatingLabeleInput
        label="User Name"
        value={userName}
        onChange={setUserName}
        autoCapitalize="none"
        returnKeyType="next"
        required={false}
        blurredBorderWidth={1}
      />
    </View>
  );
};

export default Example;

Available props

All the TextInput props are supported as well!

| Name | Type | Default | Description | | -------------------- | ---------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | autoCapitalize | string? | | Tells TextInput to automatically capitalize certain characters. This property is not supported by some keyboard types such as name-phone-pad | | blurredBorderWidth | float? | 0 | Border width of the blurred component | | blurredFontSize | float? | 16 | Label font size of the burred component | | blurredPosition | float? | android: 25, ios: 10 | Label position of the burred component | | colors | object? | {} | Overrides the default colors of the compoent | | customStyles | style? | {} | The style of the parent container | | disabled | bool? | false | If true, text is not editable. The default value is false | | focusedBorderWidth | float? | 1.3 | Border width of the focused component | | focusedFontSize | float? | 13 | Label font size of the focused component | | focusedPosition | float? | android: -4, ios: -5 | Label position of the focused component | | inputFontSize | float? | 16 | Input font size of the component | | isSecureField | bool? | false | If true, the text input obscures the text entered so that sensitive text like passwords stay secure. The default value is false. Does not work with multiline={true} | | keyboardType | string? | 'default' | Determines which keyboard to open, e.g.numeric | | label | string | | The label of the field | | labelLeftPosition | float? | showLeftIcon === true ? 32 : 5 | Label left position | | leftIcon | component? | | Left Component | | message | string? | '' | Help text | | multiline | bool? | false | If true, the text input can be multiple lines | | onBlur | func? | () => null | Callback that is called when the text input is blurred | | onChange | func | REQUIRED () => null | Callback that is called when the text input's text changes. Changed text is passed as a single string argument to the callback handler | | onFocus | func? | () => null | Callback that is called when the text input is focused | | onLeftIconPress | func? | () => null | Callback that is called when the left icon is clicked | | onRightIconPress | func? | () => null | Callback that is called when the right icon is clicked | | onSubmitEditing | func? | () => null | Callback that is called when the text input's submit button is pressed | | placeholder | string? | '' | The string that will be rendered before text input has been entered | | required | bool? | false | If true, displays the * symbol next to label | | returnKeyType | string? | | Determines how the return key should look. | | rightActiveIcon | component? | | Right Active Component | | rightInactiveIcon | component? | | Right Inactive Component | | showLeftIcon | bool? | false | If true, reder leftIcon | | showRightIcon | bool? | false | If true, reder rightActiveIcon and rightInactiveIcon | | value | string | REQUIRED | The value of the text input |

Contributing

Pull requests, feedbacks and suggestions are welcome!

License

The library is released under the Folio3 X-Platform Engineering Group.