1.0.0 • Published 5 years ago

react-native-keyboardshift-razzium v1.0.0

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

react-native-KeyboardShift-razzium

A view (not a ScrollView !) component that handle keyboard display and prevent cover current focused input (based on John Tucker article : https://codeburst.io/react-native-keyboard-covering-inputs-72a9d3072689).",

GIF GIF

Installation

npm install react-native-KeyboardShift-razzium --save
or
yarn add react-native-KeyboardShift-razzium

Usage

import KeyboardShift from 'react-native-KeyboardShift-razzium';

// ...

render() {
    
  return (
    
     <KeyboardShift
        keyboardDisplayTopSpacing={10}
        animDuringKeyboardDisplayIOS={false} >
        {() => (
            <View style={styles.rootContainer}>
                <Text>
                react-native-KeyboardShift-razzium
                </Text>
            </View>
        )}
     </KeyboardShift>
            
  );
  
}

Props

PropertyTypeisRequired?DefaultDescription
animDuringKeyboardDisplayIOSbooloptionalFALSELaunch anim during keyboard display, not after display (iOS ONLY)
keyboardShowDisplayDurationnumberoptional250Animation show during time
keyboardHideDisplayDurationnumberoptional250Animation hide during time
keyboardDisplayTopSpacingnumberoptional0Top spacing above keyboard (under input)

Credits

https://codeburst.io/react-native-keyboard-covering-inputs-72a9d3072689

License

MIT