UNPKG

react-native-keyboard-controller

Version:

Keyboard manager which works in identical way on both iOS and Android

18 lines (17 loc) 925 B
import React from "react"; import type { KeyboardProviderProps } from "./types"; /** * A component that wrap your app. Under the hood it works with {@link https://kirillzyusko.github.io/react-native-keyboard-controller/docs/api/keyboard-controller-view|KeyboardControllerView} to receive events during keyboard movements, * maps these events to `Animated`/`Reanimated` values and store them in context. * * @param props - Provider props, such as `statusBarTranslucent`, `navigationBarTranslucent`, etc. * @returns A component that should be mounted in root of your App layout. * @see {@link https://kirillzyusko.github.io/react-native-keyboard-controller/docs/api/keyboard-provider|Documentation} page for more details. * @example * ```tsx * <KeyboardProvider> * <NavigationContainer /> * </KeyboardProvider> * ``` */ export declare const KeyboardProvider: (props: KeyboardProviderProps) => React.JSX.Element;