Skip to content

Commit cc89f8f

Browse files
committed
add types
1 parent cb7b59b commit cc89f8f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import RNASModule from './RNASModule'
2+
import { ISafeKeyboardDetector } from './types'
23

3-
export const SafeKeyboardDetector = {
4+
export const SafeKeyboardDetector: ISafeKeyboardDetector = {
45
isCurrentKeyboardSafe: RNASModule.isCurrentKeyboardSafe,
56
showInputMethodPicker: RNASModule.showInputMethodPicker,
67
}

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface ISafeKeyboardDetector {
2+
isCurrentKeyboardSafe: (customWhiteListedKeyboardList?: String[]) => boolean;
3+
showInputMethodPicker: () => void;
4+
}

0 commit comments

Comments
 (0)