0.0.9 • Published 2 years ago

react-native-animated-placeholder-textinput v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Native Animated Placeholder Textinput

intro

Installation

Install the dependencies and devDependencies and start the server.

npm i react-native-animated-placeholder-textinput
or
yarn add react-native-animated-placeholder-textinput
import React, {useState} from 'react';
import AnimatedTextInput from 'react-native-animated-placeholder-textinput';

export default function App() {
  const [email, setEmail] = useState('');
  return (
    <AnimatedTextInput
      placeholder="Email"
      value={email}
      textInputProps={{
        keyboardType: 'email-address',
      }}
      onChangeText={data => setEmail(data)}
    />
  );
}

Props

PluginStringDescriptionDefault
labelStringDisplayed as placeholder string of the input.Email
labelTopValueNumberNegative value to adjust theplaceholder on top border when click on it-24
borderColorStringApplied to the border of TextInputgray
borderWidthNumberApplied to the border of TextInput1
paddingVerticalNumberApplied to the TextInput component8
borderRadiusNumberApplied to the TextInput5
valueStringThe value to show for the text input.-
onChangeTextcallbackChanged text is passed as a single string argument to the callback handler-
textInputPropsObjectprops of TextInput component-

Development

Want to contribute? Great!

License

MIT

Free Software, Hell Yeah!

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago