react-native-floating-label-inputbox
Advanced tools
Comparing version
{ | ||
"name": "react-native-floating-label-inputbox", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "It is a input box for react native included with validation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,2 @@ | ||
# React Native Floating Label Input | ||
@@ -8,6 +9,6 @@ | ||
npm i react-native-floating-label-inputbox | ||
npm i react-native-floating-label-inputboxode | ||
or | ||
yarn add react-native-floating-label-inputbox | ||
yarn add react-native-floating-label-inputbox | ||
@@ -33,2 +34,29 @@ ## Props | ||
## Example | ||
import React,{useState} from 'react' | ||
import {View,Text} from 'react-native' | ||
import InputBox from 'react-native-floating-label-inputbox' | ||
const App = () => { | ||
const [name,setName]=useState("") | ||
return ( | ||
<View style={{padding:10}}> | ||
<InputBox | ||
inputOutline | ||
label={'Name'} | ||
value={name} | ||
onChangeText={(e)=>setName(e)} | ||
/> | ||
</View> | ||
) | ||
} | ||
export default App | ||
## Important | ||
@@ -35,0 +63,0 @@ |
7696
9.29%73
62.22%