react-native-external-keyboard 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -10
- package/android/src/main/java/com/externalkeyboard/events/EventHelper.java +11 -0
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapper.java +34 -6
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapperManager.java +2 -6
- package/ios/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.h +5 -2
- package/ios/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +26 -0
- package/ios/ViewManagers/RNCEKVExternalKeyboardViewManager/RNCEKVExternalKeyboardViewManager.mm +1 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -1
- package/lib/commonjs/NativeModules/A11yKeyboardModule/index.js.map +1 -1
- package/lib/commonjs/NativeModules/index.js.map +1 -1
- package/lib/commonjs/components/ExternalKeyboardView/ExternalKeyboardView.js +2 -2
- package/lib/commonjs/components/ExternalKeyboardView/ExternalKeyboardView.js.map +1 -1
- package/lib/commonjs/components/ExternalKeyboardView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js +21 -11
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/commonjs/components/KeyboardExtendedInput/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js +2 -2
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js +2 -2
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +2 -2
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/index.js.map +1 -1
- package/lib/commonjs/components/Pressable/Pressable.android.js +2 -2
- package/lib/commonjs/components/Pressable/Pressable.android.js.map +1 -1
- package/lib/commonjs/components/Pressable/Pressable.ios.js +4 -3
- package/lib/commonjs/components/Pressable/Pressable.ios.js.map +1 -1
- package/lib/commonjs/components/Pressable/Pressable.js.map +1 -1
- package/lib/commonjs/components/Pressable/index.js.map +1 -1
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js +1 -1
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpec/NativeKeyboardModule.js.map +1 -1
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.js +1 -1
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpec/index.js +1 -1
- package/lib/commonjs/nativeSpec/index.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.android.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.d.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.ios.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.types.js.map +1 -1
- package/lib/commonjs/services/A11yModule/index.js.map +1 -1
- package/lib/commonjs/services/index.js.map +1 -1
- package/lib/commonjs/types/FocusStyle.js.map +1 -1
- package/lib/commonjs/types/KeyboardFocusView.types.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/module/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -1
- package/lib/module/NativeModules/A11yKeyboardModule/index.js.map +1 -1
- package/lib/module/NativeModules/index.js.map +1 -1
- package/lib/module/components/ExternalKeyboardView/ExternalKeyboardView.js +1 -1
- package/lib/module/components/ExternalKeyboardView/ExternalKeyboardView.js.map +1 -1
- package/lib/module/components/ExternalKeyboardView/index.js.map +1 -1
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js +20 -10
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/module/components/KeyboardExtendedInput/index.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/hooks/index.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +3 -3
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/index.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.android.js +1 -1
- package/lib/module/components/Pressable/Pressable.android.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.ios.js +2 -1
- package/lib/module/components/Pressable/Pressable.ios.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.js.map +1 -1
- package/lib/module/components/Pressable/index.js.map +1 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -1
- package/lib/module/nativeSpec/NativeKeyboardModule.js.map +1 -1
- package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.js.map +1 -1
- package/lib/module/nativeSpec/index.js.map +1 -1
- package/lib/module/services/A11yModule/A11yModule.android.js.map +1 -1
- package/lib/module/services/A11yModule/A11yModule.d.js.map +1 -1
- package/lib/module/services/A11yModule/A11yModule.ios.js.map +1 -1
- package/lib/module/services/A11yModule/A11yModule.types.js.map +1 -1
- package/lib/module/services/A11yModule/index.js.map +1 -1
- package/lib/module/services/index.js.map +1 -1
- package/lib/module/types/FocusStyle.js.map +1 -1
- package/lib/module/types/KeyboardFocusView.types.js.map +1 -1
- package/lib/module/types/index.js.map +1 -1
- package/lib/typescript/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts +3 -0
- package/lib/typescript/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.android.d.ts +1 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.android.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.d.ts +1 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.ios.d.ts +1 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.ios.d.ts.map +1 -1
- package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.android.d.ts +1 -0
- package/lib/typescript/components/Pressable/Pressable.android.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.d.ts +1 -0
- package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.ios.d.ts +1 -0
- package/lib/typescript/components/Pressable/Pressable.ios.d.ts.map +1 -1
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +1 -0
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/types/KeyboardFocusView.types.d.ts +1 -0
- package/lib/typescript/types/KeyboardFocusView.types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx +23 -11
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts +8 -5
- package/src/components/Pressable/Pressable.ios.tsx +1 -0
- package/src/nativeSpec/ExternalKeyboardViewNativeComponent.ts +1 -0
- package/src/types/KeyboardFocusView.types.ts +1 -1
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ExternalKeyboard.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextInput, TextInputProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { OnFocusChangeFn } from '../../types/KeyboardFocusView.types';
|
|
4
|
+
import type { FocusStyle } from '../../types/FocusStyle';
|
|
4
5
|
declare const focusMap: {
|
|
5
6
|
default: number;
|
|
6
7
|
press: number;
|
|
@@ -16,12 +17,14 @@ export type KeyboardFocusViewProps = TextInputProps & {
|
|
|
16
17
|
blurType?: keyof typeof blurMap;
|
|
17
18
|
containerStyle?: StyleProp<ViewStyle>;
|
|
18
19
|
onFocusChange?: OnFocusChangeFn;
|
|
20
|
+
focusStyle?: FocusStyle;
|
|
19
21
|
};
|
|
20
22
|
export declare const KeyboardExtendedInput: React.ForwardRefExoticComponent<TextInputProps & {
|
|
21
23
|
focusType?: "default" | "auto" | "press" | undefined;
|
|
22
24
|
blurType?: "default" | "auto" | "disable" | undefined;
|
|
23
25
|
containerStyle?: StyleProp<ViewStyle>;
|
|
24
26
|
onFocusChange?: OnFocusChangeFn | undefined;
|
|
27
|
+
focusStyle?: FocusStyle;
|
|
25
28
|
} & React.RefAttributes<TextInput>>;
|
|
26
29
|
export {};
|
|
27
30
|
//# sourceMappingURL=KeyboardExtendedInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAGzD,QAAA,MAAM,QAAQ;;;;CAIb,CAAC;AAEF,QAAA,MAAM,OAAO;;;;CAIZ,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG;IACpD,SAAS,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;qBALf,UAAU,SAAS,CAAC;;iBAExB,UAAU;mCAoCxB,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const KeyboardFocusView: React.ForwardRefExoticComponent<import("
|
|
|
9
9
|
focusStyle?: import("../../types").FocusStyle;
|
|
10
10
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
11
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
12
13
|
withView?: boolean | undefined;
|
|
13
14
|
} & React.RefAttributes<View>>;
|
|
14
15
|
//# sourceMappingURL=KeyboardFocusView.android.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusView.android.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKpC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.android.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;8BAkC7B,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const KeyboardFocusView: import("react").ForwardRefExoticComponen
|
|
|
9
9
|
focusStyle?: import("../../types").FocusStyle;
|
|
10
10
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
11
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
12
13
|
withView?: boolean | undefined;
|
|
13
14
|
} & import("react").RefAttributes<View>>;
|
|
14
15
|
//# sourceMappingURL=KeyboardFocusView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusView.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;wCAG3B,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const KeyboardFocusView: React.ForwardRefExoticComponent<import("
|
|
|
9
9
|
focusStyle?: import("../../types").FocusStyle;
|
|
10
10
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
11
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
12
13
|
withView?: boolean | undefined;
|
|
13
14
|
} & React.RefAttributes<View>>;
|
|
14
15
|
//# sourceMappingURL=KeyboardFocusView.ios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusView.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,iBAAiB;;;;;;;;;;;8BA0C7B,CAAC"}
|
package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusStyle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE7D,eAAO,MAAM,aAAa,gBACX,UAAU,kBACP,eAAe;;;;;
|
|
1
|
+
{"version":3,"file":"useFocusStyle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE7D,eAAO,MAAM,aAAa,gBACX,UAAU,kBACP,eAAe;;;;;CAuBhC,CAAC"}
|
|
@@ -19,6 +19,7 @@ export declare const Pressable: React.ForwardRefExoticComponent<PressableProps &
|
|
|
19
19
|
focusStyle?: import("../../types").FocusStyle;
|
|
20
20
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
21
21
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
22
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
22
23
|
withView?: boolean | undefined;
|
|
23
24
|
} & React.RefAttributes<View>>;
|
|
24
25
|
//# sourceMappingURL=Pressable.android.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.android.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.android.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAErB,IAAI,EACJ,cAAc,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAA0B,YAAY,EAAE,MAAM,aAAa,CAAC;AAKxE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Pressable.android.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.android.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAErB,IAAI,EACJ,cAAc,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAA0B,YAAY,EAAE,MAAM,aAAa,CAAC;AAKxE,eAAO,MAAM,SAAS;;;;;;;;;;;8BA8ErB,CAAC"}
|
|
@@ -9,6 +9,7 @@ export declare const Pressable: import("react").ForwardRefExoticComponent<Pressa
|
|
|
9
9
|
focusStyle?: import("../../types").FocusStyle;
|
|
10
10
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
11
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
12
13
|
withView?: boolean | undefined;
|
|
13
14
|
} & import("react").RefAttributes<View>>;
|
|
14
15
|
//# sourceMappingURL=Pressable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,SAAS;;;;;;;;;;;wCAErB,CAAC"}
|
|
@@ -76,6 +76,7 @@ export declare const Pressable: React.MemoExoticComponent<React.ForwardRefExotic
|
|
|
76
76
|
focusStyle?: import("../../types").FocusStyle;
|
|
77
77
|
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
78
78
|
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
79
|
+
onContextMenuPress?: (() => void) | undefined;
|
|
79
80
|
withView?: boolean | undefined;
|
|
80
81
|
} & {
|
|
81
82
|
unstable_pressDelay?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pressable.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,aAAa,CAAC;AAExE,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE;QACd,gBAAgB,EAAE,MAAM,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AE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,KAAK,kBAAkB,GAAG,qBAAqB,GAAG,UAAU,CAAC;AAE7D,KAAK,OAAO,GAAG;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAClD,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAcF,eAAO,MAAM,SAAS;;;;;;;;;;;;;kBARJ,OAAO;mBACN,OAAO;eACX,OAAO;gBACN,OAAO;+BA0LtB,CAAC"}
|
|
@@ -28,6 +28,7 @@ export interface ExternalKeyboardNativeProps extends ViewProps {
|
|
|
28
28
|
canBeFocused?: boolean;
|
|
29
29
|
hasKeyDownPress?: boolean;
|
|
30
30
|
hasKeyUpPress?: boolean;
|
|
31
|
+
onContextMenuPress?: BubblingEventHandler<{}>;
|
|
31
32
|
}
|
|
32
33
|
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<ExternalKeyboardNativeProps>;
|
|
33
34
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalKeyboardViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,aAAa,CAAC,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExternalKeyboardViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,OAAO,EAAE,KAAK,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,aAAa,CAAC,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kBAAkB,CAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,CAAC;CAC/C;;AAED,wBAEE"}
|
|
@@ -28,6 +28,7 @@ export type KeyboardFocusViewProps = FocusWrapperProps & {
|
|
|
28
28
|
focusStyle?: FocusStyle;
|
|
29
29
|
onPress?: (e: GestureResponderEvent | OnKeyPress) => void;
|
|
30
30
|
onLongPress?: (e: GestureResponderEvent | OnKeyPress) => void;
|
|
31
|
+
onContextMenuPress?: () => void;
|
|
31
32
|
/**
|
|
32
33
|
* @platform android
|
|
33
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusView.types.d.ts","sourceRoot":"","sources":["../../../src/types/KeyboardFocusView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;IACpD,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AACnD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAE9D,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CAC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,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,GAAG,UAAU,KAAK,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,GAAG,UAAU,KAAK,IAAI,CAAC;IAC9D,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-external-keyboard",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.4",
|
|
4
|
+
"description": "Toolkit for improving physical keyboard support in React Native",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
7
|
"types": "lib/typescript/index.d.ts",
|
|
@@ -3,6 +3,8 @@ import { TextInput, TextInputProps, StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { TextInputFocusWrapperNative } from '../../nativeSpec';
|
|
5
5
|
import type { OnFocusChangeFn } from '../../types/KeyboardFocusView.types';
|
|
6
|
+
import type { FocusStyle } from '../../types/FocusStyle';
|
|
7
|
+
import { useFocusStyle } from '../KeyboardFocusView/hooks';
|
|
6
8
|
|
|
7
9
|
const focusMap = {
|
|
8
10
|
default: 0,
|
|
@@ -21,6 +23,7 @@ export type KeyboardFocusViewProps = TextInputProps & {
|
|
|
21
23
|
blurType?: keyof typeof blurMap;
|
|
22
24
|
containerStyle?: StyleProp<ViewStyle>;
|
|
23
25
|
onFocusChange?: OnFocusChangeFn;
|
|
26
|
+
focusStyle?: FocusStyle;
|
|
24
27
|
};
|
|
25
28
|
|
|
26
29
|
export const KeyboardExtendedInput = React.forwardRef<
|
|
@@ -33,18 +36,27 @@ export const KeyboardExtendedInput = React.forwardRef<
|
|
|
33
36
|
blurType = 'default',
|
|
34
37
|
containerStyle,
|
|
35
38
|
onFocusChange,
|
|
39
|
+
focusStyle,
|
|
40
|
+
style,
|
|
36
41
|
...props
|
|
37
42
|
},
|
|
38
43
|
ref
|
|
39
|
-
) =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
) => {
|
|
45
|
+
const { fStyle, onFocusChangeHandler } = useFocusStyle(
|
|
46
|
+
focusStyle,
|
|
47
|
+
onFocusChange
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<TextInputFocusWrapperNative
|
|
52
|
+
onFocusChange={onFocusChangeHandler}
|
|
53
|
+
focusType={focusMap[focusType]}
|
|
54
|
+
blurType={blurMap[blurType]}
|
|
55
|
+
style={containerStyle}
|
|
56
|
+
ref={ref}
|
|
57
|
+
>
|
|
58
|
+
<TextInput blurOnSubmit={false} style={[style, fStyle]} {...props} />
|
|
59
|
+
</TextInputFocusWrapperNative>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
50
62
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState, useMemo } from 'react';
|
|
1
|
+
import { useState, useMemo, useCallback } from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import type { FocusStyle, OnFocusChangeFn } from 'src/types';
|
|
4
4
|
|
|
@@ -8,10 +8,13 @@ export const useFocusStyle = (
|
|
|
8
8
|
) => {
|
|
9
9
|
const [focused, setFocusStatus] = useState(false);
|
|
10
10
|
|
|
11
|
-
const onFocusChangeHandler: OnFocusChangeFn = (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const onFocusChangeHandler: OnFocusChangeFn = useCallback(
|
|
12
|
+
(event) => {
|
|
13
|
+
setFocusStatus(event.nativeEvent.isFocused);
|
|
14
|
+
onFocusChange?.(event);
|
|
15
|
+
},
|
|
16
|
+
[onFocusChange]
|
|
17
|
+
);
|
|
15
18
|
|
|
16
19
|
const fStyle = useMemo(() => {
|
|
17
20
|
if (!focusStyle) return focused ? styles.defaultHighlight : undefined;
|
|
@@ -266,6 +266,7 @@ export const Pressable = React.memo(
|
|
|
266
266
|
onFocusChange={onFocusChange}
|
|
267
267
|
onKeyUpPress={onKeyUpPress}
|
|
268
268
|
onKeyDownPress={onKeyDownPress}
|
|
269
|
+
onContextMenuPress={onLongPress}
|
|
269
270
|
ref={viewRef}
|
|
270
271
|
style={typeof style === 'function' ? style({ pressed }) : style}
|
|
271
272
|
collapsable={false}
|
|
@@ -34,6 +34,7 @@ export interface ExternalKeyboardNativeProps extends ViewProps {
|
|
|
34
34
|
canBeFocused?: boolean;
|
|
35
35
|
hasKeyDownPress?: boolean;
|
|
36
36
|
hasKeyUpPress?: boolean;
|
|
37
|
+
onContextMenuPress?: BubblingEventHandler<{}>;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export default codegenNativeComponent<ExternalKeyboardNativeProps>(
|
|
@@ -35,7 +35,7 @@ export type KeyboardFocusViewProps = FocusWrapperProps & {
|
|
|
35
35
|
focusStyle?: FocusStyle;
|
|
36
36
|
onPress?: (e: GestureResponderEvent | OnKeyPress) => void;
|
|
37
37
|
onLongPress?: (e: GestureResponderEvent | OnKeyPress) => void;
|
|
38
|
-
|
|
38
|
+
onContextMenuPress?: () => void;
|
|
39
39
|
/**
|
|
40
40
|
* @platform android
|
|
41
41
|
*/
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>ExternalKeyboard.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|