|
| 1 | +import type { View } from "react-native"; |
| 2 | + |
1 | 3 | declare module 'react-native-keyboard-manager' { |
2 | 4 | export type ToolbarBehaviour = 'subviews' | 'tag' | 'position'; |
3 | 5 | export type KeyboardAppearance = 'default' | 'light' | 'dark'; |
4 | 6 |
|
5 | | - export function setEnable(enable: boolean); |
6 | | - export function setEnableDebugging(enable: boolean); |
7 | | - export function setLayoutIfNeededOnUpdate(enable: boolean); |
8 | | - export function setKeyboardDistanceFromTextField(distance: number); |
9 | | - export function setEnableAutoToolbar(enable: boolean); |
10 | | - export function setToolbarDoneBarButtonItemText(text: string); |
11 | | - export function setToolbarManageBehaviourBy(behaviour: ToolbarBehaviour); |
12 | | - export function setToolbarPreviousNextButtonEnable(enable: boolean); |
13 | | - export function setToolbarTintColor(hexColor: string); |
14 | | - export function setToolbarBarTintColor(hexColor: string); |
15 | | - export function setShouldShowToolbarPlaceholder(enable: boolean); |
16 | | - export function setOverrideKeyboardAppearance(enable: boolean); |
17 | | - export function setKeyboardAppearance(appearance: KeyboardAppearance); |
18 | | - export function setShouldResignOnTouchOutside(enable: boolean); |
19 | | - export function setShouldPlayInputClicks(enable: boolean); |
20 | | - export function setShouldToolbarUsesTextFieldTintColor(enable: boolean); |
21 | | - export function resignFirstResponder(); |
22 | | - export function reloadLayoutIfNeeded(); |
23 | | - export function isKeyboardShowing(): Promise<boolean>; |
| 7 | + export class PreviousNextView extends View { } |
| 8 | + |
| 9 | + namespace KeyboardManager { |
| 10 | + function setEnable(enable: boolean): Promise<void>; |
| 11 | + function setEnableDebugging(enable: boolean): Promise<void>; |
| 12 | + function setLayoutIfNeededOnUpdate(enable: boolean): Promise<void>; |
| 13 | + function setKeyboardDistanceFromTextField(distance: number): Promise<void>; |
| 14 | + function setEnableAutoToolbar(enable: boolean): Promise<void>; |
| 15 | + function setToolbarDoneBarButtonItemText(text: string): Promise<void>; |
| 16 | + function setToolbarManageBehaviourBy(behaviour: ToolbarBehaviour): Promise<void>; |
| 17 | + function setToolbarPreviousNextButtonEnable(enable: boolean): Promise<void>; |
| 18 | + function setToolbarTintColor(hexColor: string): Promise<void>; |
| 19 | + function setToolbarBarTintColor(hexColor: string): Promise<void>; |
| 20 | + function setShouldShowToolbarPlaceholder(enable: boolean): Promise<void>; |
| 21 | + function setOverrideKeyboardAppearance(enable: boolean): Promise<void>; |
| 22 | + function setKeyboardAppearance(appearance: KeyboardAppearance): Promise<void>; |
| 23 | + function setShouldResignOnTouchOutside(enable: boolean): Promise<void>; |
| 24 | + function setShouldPlayInputClicks(enable: boolean): Promise<void>; |
| 25 | + function setShouldToolbarUsesTextFieldTintColor(enable: boolean): Promise<void>; |
| 26 | + function resignFirstResponder(): Promise<void>; |
| 27 | + function reloadLayoutIfNeeded(): Promise<void>; |
| 28 | + function isKeyboardShowing(): Promise<boolean>; |
| 29 | + } |
| 30 | + |
| 31 | + export default KeyboardManager; |
24 | 32 | } |
0 commit comments