1.0.3 • Published 7 months ago

react-native-keyboard-responsive-value v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

react-native-keyboard-responsive-value

Getting started

npm i react-native-keyboard-responsive-value

Description

This library is available in React Native. Simply use the flexible value() function to set the value when the keyboard is not present and the value when the keyboard appears as a parameter to return the second parameter value when the keyboard appears. Parameters and return values can be numeric and stringed. It's my first time making it, and I think it will be lacking a lot. If there is a problem, please leave a problem in the github issue. Thank you.

Example

import {Text, TextInput, View } from 'react-native';
import flexibleValue from 'react-native-keyboard-responsive-value';

export default function App() {
  const fontSize = flexibleValue(100, 30);
  return (
    <View>
      <TextInput placeholder='Click here'/>
      <Text style={{fontSize}}>Flexible Value</Text>
    </View>
  );
}
1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago