60FPS
smooth animation. 🔥Dark
mode supported.- Standalone usage. ✌️
- Compatible
Expo
.👌 - Runs smoothly on Both
Android
&IOS
- Written in
TypeScript
. ✨
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.
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>
);
}
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 |
You can access all other react native TextInput
props as well.
Epic Floating Input has two type of styles outline
and solid
.
- Abdullah Khan
- Saif Ali Khan
MIT
Liked the Component? 😇