Giter VIP home page Giter VIP logo

react-native-sticky-keyboard-accessory's Introduction

What up ๐Ÿคœ

I'm Zoro, a JavaScript/Ruby developer and iOS fan living in Chengdu ๐Ÿผ, China ๐Ÿ‡จ๐Ÿ‡ณ.

  • ๐Ÿšž I'm mainly working on Next.js and Rails projects recently two years, and also maintaining an open source iOS side project stuhome (2017-2023)
  • ๐Ÿ‘จโ€๐Ÿ’ป You can find more of my projects here
  • ๐Ÿ‘ช I'm also a daddy and husband
  • ๐ŸŽง I love hiphop, kick boxing, running and swimming

GitHub Stats

just4fun's github stats

react-native-sticky-keyboard-accessory's People

Contributors

jeltef avatar just4fun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-native-sticky-keyboard-accessory's Issues

sticky accessory problem in My android device

here is my ios, android screen.

I have some problem in android.
I think it goes up twice as high as the keyboard. (android)
what can i do?? please help me T.T

here is my code

import React from 'react';
import {
View,
Keyboard,
TextInput,
StyleSheet,
SafeAreaView
} from 'react-native';

import CustomIcon from '../components/CustomIcon';

import Icon from 'react-native-vector-icons/FontAwesome';
import KeyboardAccessory from 'react-native-sticky-keyboard-accessory';

export default class InfromScreen extends React.Component {
render() {
return (






<Icon
style={styles.keyboardAccessoryItem}
name='angle-down'
size={30}
onPress={() => Keyboard.dismiss()} />




);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff'
},
wrapper: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center'
},
keyboardAccessoryContainer: {
flexDirection: 'row',
height: 40,
paddingHorizontal: 20,
alignItems: 'center'
},
keyboardAccessoryItem: {
color: '#979797',
marginLeft: 10
},
input: {
flex: 1,
height: 30,
paddingHorizontal: 10,
borderWidth: 1,
borderRadius: 5,
borderColor: '#ddd',
backgroundColor: '#fff'
},
});

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2020-08-26 แ„‹แ…ฉแ„’แ…ฎ 7 39 27
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2020-08-26 แ„‹แ…ฉแ„’แ…ฎ 7 39 50
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2020-08-26 แ„‹แ…ฉแ„’แ…ฎ 7 39 57
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2020-08-26 แ„‹แ…ฉแ„’แ…ฎ 7 40 05

Bug when keyboard is showed with createMaterialTopTabNavigator of react-navigation

Hey,

Here is my code :

export default class FeedFriends extends React.Component {

  constructor() {
    super();
  }

render () {
  return (

    <View style={{flex:1, backgroundColor:'white'}}> 

    
     <KeyboardAccessory>
	  <View style={{ flexDirection: 'row', height: 40 }}>
	    <TextInput
	      style={{ flex: 1, height: 30, borderWidth: 1 }}
	      placeholder='Click me!' />
	  </View>
	</KeyboardAccessory>


    </View>           

    );
  }
}

And here is what I get when I click on the <TextInput/> :

img_9f4063d3de0a-1

I'm using Expo : v30.0.0
React : v16.3.1
React Native : 0.55.4
Bugs on iPhone 6S and Android Huawei P6 2018

EDIT : I'm also using react-navigation : 2.13.0. And createMaterialTopTabNavigator with TabBarPosition: "bottom".

img_d771c9641d17-1

If I put TabBarPosition: "top", it removes the bug :

img_4c9c236cc8cf-1

Thanks for your help ! :-)

getBottomSpace() returns incorrect Y Coordinate in Modal

Firstly, this is a great component!

Secondly, I understand the reasoning behind adding getBottomSpace() but it doesn't take into consideration whether or not the view is inside a modal, which overlays any tabbed navigation.

I recommend adding a final prop to ensure this is fixed for future issues, let me know if you'd like me to make a PR.

Thank you again!

Samir

Add a LICENSE file

Right now the license of this project is only mentioned in the package.json. It's best to also create a LICENSE file matching it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.