Skip to content

melihberberolu/React-Native-Keyboard-Sticky-View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Native-Keyboard-Sticky-View

React Native keyboard sticky view with animation

Demo

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>
    )
  }
}

About

React Native keyboard sticky view with animation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published