flyerhq / react-native-keyboard-accessory-view Goto Github PK
View Code? Open in Web Editor NEWKeyboard accessory (sticky) view for your React Native app. Supports interactive dismiss on iOS.
License: MIT License
Keyboard accessory (sticky) view for your React Native app. Supports interactive dismiss on iOS.
License: MIT License
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.
It appears that the event 'keyboardWillChangeFrame' is not fired on android.
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:
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
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?
Hi, first of all great project this is really useful! However I have stumbled across an issue on iOS.
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!
i have an issue with TextInput child in KeyboardAccessoryView
keyboard will auto dismiss when setState on iOS
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:
react-native-keyboard-accessory-view/src/KeyboardAccessoryView.tsx
Lines 75 to 81 in 93ce855
If I set flex: 1
on the Animated.View
everything works properly
Before:
After:
Hi there,
I tried to use the KeyboardAccessoryView with RN's builtin KeyboardAvoidingView and ScrollView components.
Do you have any tip on the correct way of setting this up?
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.
When I input return, textinput's cursor is not follow my input
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.