New OverKeyboardView component
Meet new OverKeyboardView
component and corresponding 1.14.0
release! ๐
What is OverKeyboardView
?โ
OverKeyboardView
is a new component that allows you to display your content over the keyboard. It's a great way to create a modal-like experience with a natural transitions between windows in your application without closing or hiding the keyboard. Say "no" to instant keyboard transitions, jumps, glitches, bouncy UI and other things and use the component that "just works":
This component is perfect for countless applications! Whether you're building a photo gallery app or crafting a custom context menu that floats seamlessly over the screen (keeping the content behind visible while keyboard stays open) - the OverKeyboardView
is the solution you've been waiting for!
How to use it?โ
To use OverKeyboardView
you need to wrap your content with it and pass visible
prop to it. When visible
is true
the content will be displayed over the keyboard.
import { OverKeyboardView } from "react-native-keyboard-controller";
const App = () => {
const [visible, setVisible] = useState(false);
return (
<OverKeyboardView visible={visible}>
{/* Your content here */}
</OverKeyboardView>
);
};
You can also check a dedicated API page to learn more about it.
What's else packed in a new release?โ
Apart of a new feature this release contains mostly bugfixes that touches an integration aspect, such as:
KeyboardToolbar
can work inModal
on Android (#590);KeyboardAwareScrollView
can useScrollView
fromreact-native-gesture-handler
(#595);OverKeyboardView
in invisible state is not hidingScrollView
(#598);OverKeyboardView
works withGestureDetector
on Android (#602);
Other than that I also improved documentation of the package, update linters and did other various maintenance tasks.
What's next?โ
I see that the library becomes more and more popular, and next several months I'd like to focus on making stability of this library better. It's already pretty stable and good, but when it comes to the integration in big projects people are encountering some issues and reporting it. So my near-term goal is to improve the stability of the library and make it more stable for everyone.
If you have a pain-points when you have to deal with keyboard in react-native
applications, please feel free to contribute to the project by submitting issues or pull requests on GitHub. Let's continue to make react-native-keyboard-controller
an essential tool for developers building high-quality mobile applications! ๐ช
To stay tuned follow me on Twitter and GitHub for updates. Thank you for your support! ๐