epic-floating-input-react-native
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Epic Floating Input

npm npm npm runs with expo

An elegant, fast & animated floating input component for react native


Features

  • 60FPS smooth animation. 🔥
  • Dark mode supported.
  • Standalone usage. ✌️
  • Compatible Expo.👌
  • Runs smoothly on Both Android & IOS
  • Written in TypeScript.

Installation

yarn add epic-floating-input-react-native
# or
npm install epic-floating-input-react-native

Also, you need to install react-native-vector-icons, and follow their installation instructions.

Usage

import * as React from "react";

import { StyleProp, Text, View, ViewStyle } from "react-native";
import { EpicFloatingInput } from "epic-floating-input-react-native";

export default function App() {

  const container: StyleProp<ViewStyle> = {
    flex: 1,
    justifyContent: "center",
    paddingHorizontal: 20,
  };

  return (
    <View style={container}>
	  // Just a Single Line Startup 🌟
      <EpicFloatingInput placeholder="Epic Floating Input" />
      //End
    </View>
  );
}

Props

name description required type default
type Floating Input Theme ['primary','danger', 'warning', 'success', 'muted', 'tertiary']. No
theme From this you can override the current theme of the input. No [primary: #hexCode ,danger: #hexCode, warning: #hexCode, success: #hexCode, muted: #hexCode, 'tertiary']
inputStyle inputStyle applied on the input container. NO StyleProp
placeholder placeholder text for the input. Yes string
mode specify the current mode [dark, light]. NO dark or light
left you can add icon to the left side of the input NO IconProps undefined
right you can add icon to the right side of the input NO IconProps undefined
options more options for customizing the things. NO EpicFloatingInputOptions
helperText Add helper text at the bottom of the input. NO string or React.ReactNode
disabled Disable the input. NO boolean false
onChangeText Callback on typing. NO (text: string) => void

More Props

You can access all other react native TextInput props as well.

Styles

Epic Floating Input has two type of styles outline and solid.

Outline Style

Solid Style

Built With ❤️

Author

  • Abdullah Khan
  • Saif Ali Khan

License

MIT

Liked the Component? 😇


Dependents (0)

Package Sidebar

Install

npm i epic-floating-input-react-native

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

93.8 kB

Total Files

33

Last publish

Collaborators

  • selfsofts