React Native keyboard sticky view with animation
import React from 'react';
import { TouchableOpacity, StyleSheet, View, TextInput, Text } from 'react-native';
import KeyboardStickyView from 'react-native-keyboard-sticky-view';
export default class KeyboardStickyViewExample extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={styles.textinputWrapper}>
<TextInput />
</View>
<KeyboardStickyView
onKeyboardShow={f => f}
onKeyboardHide={f => f}
>
{ (state, props) => (
<TouchableOpacity style={styles.btn}>
<Text>Click</Text>
</TouchableOpacity>
)}
</KeyboardStickyView>
</View>
)
}
}