GithubHelp home page GithubHelp logo

flyerhq / react-native-keyboard-accessory-view Goto Github PK

View Code? Open in Web Editor NEW
318.0 8.0 25.0 881 KB

Keyboard accessory (sticky) view for your React Native app. Supports interactive dismiss on iOS.

License: MIT License

JavaScript 8.15% Starlark 2.20% Ruby 3.22% Swift 6.36% Objective-C 0.73% TypeScript 61.65% Kotlin 17.70%
keyboard-accessory keyboard sticky react-component interactive react-native ios android typescript

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

Contributors

demchenkoalex avatar giautm avatar sallar 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

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

Renders on top of SafeAreaView

Hi, thanks so much for this package - it's fantastic!

I have a problem where the keyboard accessory renders on top of the bottom SafeAreaView on iphones 11 etc, even when playing the KeyboardAccessory as a child of that SafeAreaView. It works correctly on all other phones - do you have any ideas that could help me?

The background to this is that I am animating the keyboard accessory to appear when the users scrolls down to a certain point. It is done by transforming the y position to shift it up from behind the screen. When the KeyboardAccessory renders on top of the SafeAreaView it is always visible which becomes a problem.

FlatList keeps scrolling while being dismissed

I wonder if this is expected or if I'm doing something wrong.

When dismissing via interactive mode in something like WhatsApp the scroll position gets pinned in place when the keyboard starts dismissing. With this library however, the FlatList keeps scrolling underneath the keyboard.

Recording attached:

Simulator.Screen.Recording.-.iPhone.11.-.2021-05-23.at.21.20.49.mp4

Tab Bar issue

Not sure if this is my implementation or the library but having trouble with layouts using the library with a react-navigation tab bar.

When the keyboard is show, the KeyboardAccessoryView has a space between the keyboard and the bottom of the view equal to the height of the toolbar.

Screen Recording 2020-08-10 at 1 56 42 pm

Why not use the Animated API?

Hey there,

I noticed that in order to move that view around, you just change the bottom property on a View.

This all takes place on the JS thread, so I'm wondering, is there any reason you're not using the Animated api and make sure all of that runs on the main thread?

Doesn't that make your library slower and less performant?

Thanks

Problem rendering background

Hey, thanks for this nice library!
I have a problem trying to render a background, since the background is covering the content. Do you have any idea on this?

iOS negative keyboard height

Hi, first of all great project this is really useful! However I have stumbled across an issue on iOS.

Screen.Recording.2022-02-14.at.15.47.11.mov

It seems that the updateKeyboardDimensions function in node_modules/@flyerhq/react-native-keyboard-accessory-view/lib/hooks/useKeyboardDimensions.js is calculating a negative keyboard height of -174 when the keyboard closes which is different to it's original state where keyboard height is 0.

I've managed to solve this issue myself by using Math.max in this calculation, although I'm not sure if this is going to cause issues elsewhere!

Scrollable cannot be set to fill entire height of container

It appears that setting flex: 1 on the <ScrollView passed to renderScrollable does not have any effect. This seems to be because of the container's style, I tracked it down to this part of the code:

<Animated.View
style={{
paddingBottom: Animated.subtract(offset, deltaY),
}}
>
{renderScrollable(panHandlers)}
</Animated.View>

If I set flex: 1 on the Animated.View everything works properly

Before:

Screenshot 2021-05-23 at 19 59 11

After:

Screenshot 2021-05-23 at 19 59 34

scroll over the keyboard with textinput

Hi, I need to know if it is possible to start the scroll like whatsapp does:
Now the scroll starts when you reach the keyboard, but I (having a textinput on it) would like it to start when you get to the edge of the textinput section.

I leave a video attached to make you understand.

WhatsApp_Video_2021-11-19_at_17.52.00.mp4

got animate terrible in my project

When I customize the expression panel, I like to switch between the panel and input. and the Input will flash his height like animate wrong, just like the video.

I hope the animation of input can be smooth.

1651218938073418.mp4

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.