1.0.8 • Published 4 years ago

react-native-outline-input v1.0.8

Weekly downloads
46
License
ISC
Repository
github
Last release
4 years ago

react-native-outline-input

This repository is react-native animated input component

ezgif com-video-to-gif

Installation

npm install react-native-outline-input

or

yarn add react-native-outline-input

Usage

import React, { useState } from 'react';
import { SafeAreaView } from 'react-native';
import OutlineInput from 'react-native-outline-input';

const App = () => {
  const [email, setEmail] = useState('');
  const [password, setPassword] = useState('');

  return (
    <SafeAreaView>
      <OutlineInput
        value={email}
        onChangeText={(e: string) => setEmail(e)}
        label="Username"
        activeValueColor="#6c63fe"
        activeBorderColor="#6c63fe"
        activeLabelColor="#6c63fe"
        passiveBorderColor="#bbb7ff"
        passiveLabelColor="#bbb7ff"
        passiveValueColor="#bbb7ff"
      />
      <OutlineInput
        value={password}
        onChangeText={(e: string) => setPassword(e)}
        label="Username"
        activeValueColor="#6c63fe"
        activeBorderColor="#6c63fe"
        activeLabelColor="#6c63fe"
        passiveBorderColor="#bbb7ff"
        passiveLabelColor="#bbb7ff"
        passiveValueColor="#bbb7ff"
      />
    </SafeAreaView>
  );
};

export default App;

Props

PropTypeDefaultDescription
labelstringanyThe label that will display giving information about your input field
onChangeTextfunctionanyFunction that works when there is a change
valuestringanyValue of input
secureTextEntrybooleanfalseIf true, the text input obscures the text entered
autoCapitalizestringnoneCan tell to automatically capitalize certain characters
fontSizenumber16Determines the font size
heightnumber56The label that will display giving information about your input field.
durationnumber300Determines the animation time
easingEasingFunctionEasing.inOut(Easing.ease)Determines the animation type
activeValueColorstring#51AD56Determines active value color
passiveValueColorstring#757575Determines passive value color
activeLabelColorstring#51AD56Determines active label color
passiveLabelColorstring#757575Determines passive label color
activeBorderColorstring#51AD56Determines active border color
passiveBorderColorstring#EFEFEFDetermines passive border color
fontFamilystringSystemDetermines value and label font family

Thank you for your contribution to Burhan Yılmaz (@burhanyilmaz)

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago