react-native-external-keyboard 0.2.5 → 0.2.6
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 +2 -0
- package/android/src/main/java/com/externalkeyboard/events/KeyPressDownEvent.java +3 -0
- package/android/src/main/java/com/externalkeyboard/events/KeyPressUpEvent.java +3 -0
- package/ios/Helpers/RNCEKVKeyboardKeyPressHandler/RNCEKVKeyboardKeyPressHandler.mm +9 -0
- package/ios/Modules/RNCEKVA11yKeyboardModule/RNCEKVA11yKeyboardModule.mm +1 -0
- package/ios/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +21 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js +2 -4
- package/lib/commonjs/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js +11 -13
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js +13 -15
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +1 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -1
- package/lib/commonjs/components/Pressable/Pressable.android.js +26 -28
- package/lib/commonjs/components/Pressable/Pressable.android.js.map +1 -1
- package/lib/commonjs/components/Pressable/Pressable.ios.js +7 -8
- package/lib/commonjs/components/Pressable/Pressable.ios.js.map +1 -1
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js +1 -2
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -1
- package/lib/commonjs/nativeSpec/NativeKeyboardModule.js +1 -2
- package/lib/commonjs/nativeSpec/NativeKeyboardModule.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.android.js +1 -2
- package/lib/commonjs/services/A11yModule/A11yModule.android.js.map +1 -1
- package/lib/commonjs/services/A11yModule/A11yModule.ios.js +1 -2
- package/lib/commonjs/services/A11yModule/A11yModule.ios.js.map +1 -1
- package/lib/module/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js +1 -2
- package/lib/module/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js +11 -12
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js +11 -12
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +1 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.android.js +18 -19
- package/lib/module/components/Pressable/Pressable.android.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.ios.js +4 -4
- package/lib/module/components/Pressable/Pressable.ios.js.map +1 -1
- package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -1
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +2 -0
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/nativeSpec/ExternalKeyboardViewNativeComponent.ts +2 -0
package/README.md
CHANGED
|
@@ -14,8 +14,11 @@ public class KeyPressDownEvent extends Event<KeyPressDownEvent> {
|
|
|
14
14
|
public KeyPressDownEvent(int id, int keyCode, KeyEvent keyEvent) {
|
|
15
15
|
super(id);
|
|
16
16
|
|
|
17
|
+
int unicode = keyEvent.getUnicodeChar();
|
|
17
18
|
WritableMap eventPayload = Arguments.createMap();
|
|
18
19
|
eventPayload.putInt("keyCode", keyCode);
|
|
20
|
+
eventPayload.putInt("unicode", unicode);
|
|
21
|
+
eventPayload.putString("unicodeChar", String.valueOf((char)unicode));
|
|
19
22
|
eventPayload.putBoolean("isLongPress", keyEvent.isLongPress());
|
|
20
23
|
eventPayload.putBoolean("isAltPressed", keyEvent.isAltPressed());
|
|
21
24
|
eventPayload.putBoolean("isShiftPressed", keyEvent.isShiftPressed());
|
|
@@ -14,8 +14,11 @@ public class KeyPressUpEvent extends Event<KeyPressUpEvent> {
|
|
|
14
14
|
public KeyPressUpEvent(int id, int keyCode, KeyEvent keyEvent, boolean isLongPress) {
|
|
15
15
|
super(id);
|
|
16
16
|
|
|
17
|
+
int unicode = keyEvent.getUnicodeChar();
|
|
17
18
|
WritableMap eventPayload = Arguments.createMap();
|
|
18
19
|
eventPayload.putInt("keyCode", keyCode);
|
|
20
|
+
eventPayload.putInt("unicode", unicode);
|
|
21
|
+
eventPayload.putString("unicodeChar", String.valueOf((char)unicode));
|
|
19
22
|
eventPayload.putBoolean("isLongPress", isLongPress);
|
|
20
23
|
eventPayload.putBoolean("isAltPressed", keyEvent.isAltPressed());
|
|
21
24
|
eventPayload.putBoolean("isShiftPressed", keyEvent.isShiftPressed());
|
|
@@ -26,7 +26,14 @@ static const float LONG_PRESS_DURATION = 0.5;
|
|
|
26
26
|
-(NSDictionary*) getKeyPressEventInfo:(NSSet<UIPress *> *)presses
|
|
27
27
|
withEvent:(UIPressesEvent *)event {
|
|
28
28
|
UIKey *key = presses.allObjects[0].key;
|
|
29
|
+
|
|
29
30
|
NSNumber *keyCode = @(key.keyCode);
|
|
31
|
+
unichar unicode = 0;
|
|
32
|
+
NSString *unicodeChar = @"";
|
|
33
|
+
if ([key.characters length] != 0) {
|
|
34
|
+
unicode = [key.characters characterAtIndex:0];
|
|
35
|
+
unicodeChar = [[NSString alloc] initWithCharacters:&unicode length:1];
|
|
36
|
+
}
|
|
30
37
|
NSNumber *isAltPressed = @((key.modifierFlags & UIKeyModifierAlternate) > 0);
|
|
31
38
|
NSNumber *isShiftPressed = @((key.modifierFlags & UIKeyModifierShift) > 0);
|
|
32
39
|
NSNumber *isCtrlPressed = @((key.modifierFlags & UIKeyModifierControl) > 0);
|
|
@@ -36,6 +43,8 @@ static const float LONG_PRESS_DURATION = 0.5;
|
|
|
36
43
|
return @{
|
|
37
44
|
@"keyCode": keyCode,
|
|
38
45
|
@"isLongPress": @NO,
|
|
46
|
+
@"unicode": @(unicode),
|
|
47
|
+
@"unicodeChar": unicodeChar,
|
|
39
48
|
@"isAltPressed": isAltPressed,
|
|
40
49
|
@"isShiftPressed": isShiftPressed,
|
|
41
50
|
@"isCtrlPressed": isCtrlPressed,
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
8
8
|
|
|
9
|
+
#include <string>
|
|
9
10
|
#import "RNCEKVFocusWrapper.h"
|
|
10
11
|
#import <react/renderer/components/RNExternalKeyboardViewSpec/ComponentDescriptors.h>
|
|
11
12
|
#import <react/renderer/components/RNExternalKeyboardViewSpec/EventEmitters.h>
|
|
@@ -14,6 +15,19 @@
|
|
|
14
15
|
|
|
15
16
|
#import "RCTFabricComponentsPlugins.h"
|
|
16
17
|
|
|
18
|
+
std::string convertNSStringToStdString(NSString * _Nullable nsString) {
|
|
19
|
+
if (nsString == nil) {
|
|
20
|
+
return "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const char *utf8String = [nsString UTF8String];
|
|
24
|
+
if (utf8String != NULL) {
|
|
25
|
+
return std::string(utf8String);
|
|
26
|
+
} else {
|
|
27
|
+
return "";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
17
31
|
using namespace facebook::react;
|
|
18
32
|
|
|
19
33
|
@interface RNCEKVExternalKeyboardView () <RCTExternalKeyboardViewViewProtocol>
|
|
@@ -50,9 +64,13 @@ using namespace facebook::react;
|
|
|
50
64
|
_view.onKeyDownPress = [self](NSDictionary* dictionary) {
|
|
51
65
|
if (_eventEmitter) {
|
|
52
66
|
auto viewEventEmitter = std::static_pointer_cast<ExternalKeyboardViewEventEmitter const>(_eventEmitter);
|
|
67
|
+
|
|
68
|
+
std::string unicodeChar = convertNSStringToStdString([dictionary valueForKey:@"unicodeChar"]);
|
|
53
69
|
facebook::react::ExternalKeyboardViewEventEmitter::OnKeyDownPress data = {
|
|
54
70
|
.keyCode = [[dictionary valueForKey:@"keyCode"] intValue],
|
|
55
71
|
.isLongPress = [[dictionary valueForKey:@"isLongPress"] boolValue],
|
|
72
|
+
.unicode = [[dictionary valueForKey:@"unicode"] intValue],
|
|
73
|
+
.unicodeChar = unicodeChar,
|
|
56
74
|
.isAltPressed = [[dictionary valueForKey:@"isAltPressed"] boolValue],
|
|
57
75
|
.isShiftPressed = [[dictionary valueForKey:@"isShiftPressed"] boolValue],
|
|
58
76
|
.isCtrlPressed = [[dictionary valueForKey:@"isCtrlPressed"] boolValue],
|
|
@@ -67,8 +85,11 @@ using namespace facebook::react;
|
|
|
67
85
|
_view.onKeyUpPress = [self](NSDictionary* dictionary) {
|
|
68
86
|
if (_eventEmitter) {
|
|
69
87
|
auto viewEventEmitter = std::static_pointer_cast<ExternalKeyboardViewEventEmitter const>(_eventEmitter);
|
|
88
|
+
std::string unicodeChar = convertNSStringToStdString([dictionary valueForKey:@"unicodeChar"]);
|
|
70
89
|
facebook::react::ExternalKeyboardViewEventEmitter::OnKeyUpPress data = {
|
|
71
90
|
.keyCode = [[dictionary valueForKey:@"keyCode"] intValue],
|
|
91
|
+
.unicode = [[dictionary valueForKey:@"unicode"] intValue],
|
|
92
|
+
.unicodeChar = unicodeChar,
|
|
72
93
|
.isLongPress = [[dictionary valueForKey:@"isLongPress"] boolValue],
|
|
73
94
|
.isAltPressed = [[dictionary valueForKey:@"isAltPressed"] boolValue],
|
|
74
95
|
.isShiftPressed = [[dictionary valueForKey:@"isShiftPressed"] boolValue],
|
|
@@ -18,16 +18,14 @@ const RCA11y = A11yModule || new Proxy({}, {
|
|
|
18
18
|
throw new Error(LINKING_ERROR);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
const setKeyboardFocus =
|
|
22
|
-
let _nextTag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
21
|
+
const setKeyboardFocus = (nativeTag, _nextTag = 0) => {
|
|
23
22
|
RCA11y.setKeyboardFocus(nativeTag, _nextTag);
|
|
24
23
|
};
|
|
25
24
|
const setPreferredKeyboardFocus = (nativeTag, nextTag) => {
|
|
26
25
|
RCA11y.setAccessibilityFocus(nativeTag, nextTag);
|
|
27
26
|
};
|
|
28
|
-
const A11yKeyboardModule = {
|
|
27
|
+
const A11yKeyboardModule = exports.A11yKeyboardModule = {
|
|
29
28
|
setKeyboardFocus,
|
|
30
29
|
setPreferredKeyboardFocus
|
|
31
30
|
};
|
|
32
|
-
exports.A11yKeyboardModule = A11yKeyboardModule;
|
|
33
31
|
//# sourceMappingURL=A11yKeyboardModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yModule","NativeModules","A11yKeyboardModule","RCA11y","Proxy","get","Error","setKeyboardFocus","nativeTag","_nextTag","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yModule","NativeModules","A11yKeyboardModule","RCA11y","Proxy","get","Error","setKeyboardFocus","nativeTag","_nextTag","setPreferredKeyboardFocus","nextTag","setAccessibilityFocus","exports"],"sourceRoot":"../../../../src","sources":["NativeModules/A11yKeyboardModule/A11yKeyboardModule.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,MAAMC,aAAa,GAChB,0FAAyFC,qBAAQ,CAACC,MAAM,CACvG;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CACvD,CAAE,sDAAqD,GACtD,+BAA8B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,UAAU,GAAGH,oBAAoB,GACnCN,OAAO,CAAC,uCAAuC,CAAC,CAACK,OAAO,GACxDK,0BAAa,CAACC,kBAAkB;AAEpC,MAAMC,MAAM,GACVH,UAAU,IACV,IAAII,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACd,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEH,MAAMe,gBAAgB,GAAGA,CAACC,SAAiB,EAAEC,QAAQ,GAAG,CAAC,KAAK;EAC5DN,MAAM,CAACI,gBAAgB,CAACC,SAAS,EAAEC,QAAQ,CAAC;AAC9C,CAAC;AAED,MAAMC,yBAAyB,GAAGA,CAACF,SAAiB,EAAEG,OAAe,KAAK;EACxER,MAAM,CAACS,qBAAqB,CAACJ,SAAS,EAAEG,OAAO,CAAC;AAClD,CAAC;AAEM,MAAMT,kBAAkB,GAAAW,OAAA,CAAAX,kBAAA,GAAG;EAChCK,gBAAgB;EAChBG;AACF,CAAC"}
|
|
@@ -10,18 +10,17 @@ var _useFocusStyle = require("./hooks/useFocusStyle");
|
|
|
10
10
|
var _nativeSpec = require("../../nativeSpec");
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
-
const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
13
|
+
const KeyboardFocusView = exports.KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef(({
|
|
14
|
+
canBeFocused = true,
|
|
15
|
+
onFocusChange,
|
|
16
|
+
focusStyle,
|
|
17
|
+
children,
|
|
18
|
+
style,
|
|
19
|
+
withView = true,
|
|
20
|
+
onKeyUpPress,
|
|
21
|
+
onKeyDownPress,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => {
|
|
25
24
|
const {
|
|
26
25
|
fStyle,
|
|
27
26
|
onFocusChangeHandler
|
|
@@ -37,5 +36,4 @@ const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((_ref, ref) =>
|
|
|
37
36
|
accessible: true
|
|
38
37
|
}, children) : children);
|
|
39
38
|
});
|
|
40
|
-
exports.KeyboardFocusView = KeyboardFocusView;
|
|
41
39
|
//# sourceMappingURL=KeyboardFocusView.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useFocusStyle","_nativeSpec","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","KeyboardFocusView","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useFocusStyle","_nativeSpec","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","KeyboardFocusView","exports","React","forwardRef","canBeFocused","onFocusChange","focusStyle","children","style","withView","onKeyUpPress","onKeyDownPress","props","ref","fStyle","onFocusChangeHandler","useFocusStyle","createElement","ExternalKeyboardView","View","accessible"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAAwD,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAA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AAU;EAAA,GAAEb,QAAe,CAAC,GAAGA,QAC7B,CAAC;AAE3B,CACF,CAAC"}
|
|
@@ -8,26 +8,25 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _nativeSpec = require("../../nativeSpec");
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _hooks = require("./hooks");
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
-
const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = _ref;
|
|
14
|
+
const KeyboardFocusView = exports.KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef(({
|
|
15
|
+
onFocusChange,
|
|
16
|
+
style,
|
|
17
|
+
focusStyle,
|
|
18
|
+
canBeFocused = true,
|
|
19
|
+
onKeyUpPress,
|
|
20
|
+
onKeyDownPress,
|
|
21
|
+
...props
|
|
22
|
+
}, ref) => {
|
|
24
23
|
const setCurrentFocusTag = (0, _react.useCallback)(e => {
|
|
25
24
|
var _e$nativeEvent;
|
|
26
|
-
_services.A11yModule.currentFocusedTag = (e === null || e === void 0
|
|
25
|
+
_services.A11yModule.currentFocusedTag = (e === null || e === void 0 || (_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.target) || undefined;
|
|
27
26
|
}, []);
|
|
28
27
|
const onFocus = (0, _react.useCallback)(e => {
|
|
29
28
|
setCurrentFocusTag(e);
|
|
30
|
-
onFocusChange === null || onFocusChange === void 0
|
|
29
|
+
onFocusChange === null || onFocusChange === void 0 || onFocusChange(e);
|
|
31
30
|
}, [onFocusChange, setCurrentFocusTag]);
|
|
32
31
|
const {
|
|
33
32
|
fStyle,
|
|
@@ -42,5 +41,4 @@ const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((_ref, ref) =>
|
|
|
42
41
|
onFocusChange: onFocusChangeHandler
|
|
43
42
|
}, props));
|
|
44
43
|
});
|
|
45
|
-
exports.KeyboardFocusView = KeyboardFocusView;
|
|
46
44
|
//# sourceMappingURL=KeyboardFocusView.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_nativeSpec","_services","_hooks","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_nativeSpec","_services","_hooks","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","KeyboardFocusView","exports","React","forwardRef","onFocusChange","style","focusStyle","canBeFocused","onKeyUpPress","onKeyDownPress","props","ref","setCurrentFocusTag","useCallback","_e$nativeEvent","A11yModule","currentFocusedTag","nativeEvent","undefined","onFocus","f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,CAACiC,aAAa,EAAEQ,kBAAkB,CACpC,CAAC;EAED,MAAM;IAAEQ,MAAM;IAAEC;EAAqB,CAAC,GAAG,IAAAC,oBAAa,EAAChB,UAAU,EAAEa,OAAO,CAAC;EAE3E,oBACEvD,MAAA,CAAAY,OAAA,CAAA+C,aAAA,CAACxD,WAAA,CAAAyD,oBAAoB,EAAAjC,QAAA;IACnBoB,GAAG,EAAEA,GAAI;IACTN,KAAK,EAAE,CAACA,KAAK,EAAEe,MAAM,CAAE;IACvBb,YAAY,EAAEA,YAAa;IAC3BC,YAAY,EAAEA,YAAa;IAC3BC,cAAc,EAAEA,cAAe;IAC/BL,aAAa,EAAEiB;EAAqB,GAChCX,KAAK,CACV,CAAC;AAEN,CACF,CAAC"}
|
|
@@ -10,7 +10,7 @@ const useFocusStyle = (focusStyle, onFocusChange) => {
|
|
|
10
10
|
const [focused, setFocusStatus] = (0, _react.useState)(false);
|
|
11
11
|
const onFocusChangeHandler = event => {
|
|
12
12
|
setFocusStatus(event.nativeEvent.isFocused);
|
|
13
|
-
onFocusChange === null || onFocusChange === void 0
|
|
13
|
+
onFocusChange === null || onFocusChange === void 0 || onFocusChange(event);
|
|
14
14
|
};
|
|
15
15
|
const fStyle = (0, _react.useMemo)(() => {
|
|
16
16
|
if (!focusStyle) return focused ? styles.defaultHighlight : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","useState","onFocusChangeHandler","event","nativeEvent","isFocused","fStyle","useMemo","styles","defaultHighlight","undefined","specificStyle","exports","StyleSheet","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA+B,KAC5B;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,oBAAqC,GAAIC,KAAK,IAAK;IACvDH,cAAc,CAACG,KAAK,CAACC,WAAW,CAACC,SAAS,CAAC;IAC3CP,aAAa,aAAbA,aAAa,
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","useState","onFocusChangeHandler","event","nativeEvent","isFocused","fStyle","useMemo","styles","defaultHighlight","undefined","specificStyle","exports","StyleSheet","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA+B,KAC5B;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,oBAAqC,GAAIC,KAAK,IAAK;IACvDH,cAAc,CAACG,KAAK,CAACC,WAAW,CAACC,SAAS,CAAC;IAC3CP,aAAa,aAAbA,aAAa,eAAbA,aAAa,CAAGK,KAAK,CAAC;EACxB,CAAC;EAED,MAAMG,MAAM,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC3B,IAAI,CAACV,UAAU,EAAE,OAAOE,OAAO,GAAGS,MAAM,CAACC,gBAAgB,GAAGC,SAAS;IACrE,MAAMC,aAAa,GACjB,OAAOd,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEE;IAAQ,CAAC,CAAC,GAAGF,UAAU;IACzE,OAAOE,OAAO,GAAGY,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACX,OAAO,EAAEF,UAAU,CAAC,CAAC;EAEzB,OAAO;IACLK,oBAAoB;IACpBI;EACF,CAAC;AACH,CAAC;AAACM,OAAA,CAAAhB,aAAA,GAAAA,aAAA;AAEF,MAAMY,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,gBAAgB,EAAE;IAAEM,eAAe,EAAE;EAAU;AACjD,CAAC,CAAC"}
|
|
@@ -9,28 +9,27 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _KeyboardFocusView = require("../KeyboardFocusView");
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @format
|
|
19
|
+
*/
|
|
20
20
|
const ANDROID_SPACE_KEY_CODE = 62;
|
|
21
|
-
const Pressable = /*#__PURE__*/_react.default.forwardRef((
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} = _ref;
|
|
21
|
+
const Pressable = exports.Pressable = /*#__PURE__*/_react.default.forwardRef(({
|
|
22
|
+
canBeFocused,
|
|
23
|
+
focusStyle,
|
|
24
|
+
style,
|
|
25
|
+
onFocusChange,
|
|
26
|
+
onPress,
|
|
27
|
+
onLongPress,
|
|
28
|
+
onKeyDownPress,
|
|
29
|
+
onPressOut,
|
|
30
|
+
onPressIn,
|
|
31
|
+
...props
|
|
32
|
+
}, ref) => {
|
|
34
33
|
const onKeyUpPressHandler = _react.default.useCallback(e => {
|
|
35
34
|
const {
|
|
36
35
|
nativeEvent: {
|
|
@@ -39,17 +38,17 @@ const Pressable = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
39
38
|
}
|
|
40
39
|
} = e;
|
|
41
40
|
if (keyCode === ANDROID_SPACE_KEY_CODE) {
|
|
42
|
-
onPressOut === null || onPressOut === void 0
|
|
41
|
+
onPressOut === null || onPressOut === void 0 || onPressOut(e);
|
|
43
42
|
if (isLongPress) {
|
|
44
|
-
onLongPress === null || onLongPress === void 0
|
|
43
|
+
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
45
44
|
} else {
|
|
46
|
-
onPress === null || onPress === void 0
|
|
45
|
+
onPress === null || onPress === void 0 || onPress(e);
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
}, [onLongPress, onPress, onPressOut]);
|
|
50
49
|
const onPressablePressHandler = event => {
|
|
51
50
|
if (event.nativeEvent.identifier !== undefined) {
|
|
52
|
-
onPress === null || onPress === void 0
|
|
51
|
+
onPress === null || onPress === void 0 || onPress(event);
|
|
53
52
|
}
|
|
54
53
|
};
|
|
55
54
|
const onKeyDownHandler = _react.default.useCallback(e => {
|
|
@@ -59,8 +58,8 @@ const Pressable = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
59
58
|
}
|
|
60
59
|
} = e;
|
|
61
60
|
if (keyCode === ANDROID_SPACE_KEY_CODE) {
|
|
62
|
-
onKeyDownPress === null || onKeyDownPress === void 0
|
|
63
|
-
onPressIn === null || onPressIn === void 0
|
|
61
|
+
onKeyDownPress === null || onKeyDownPress === void 0 || onKeyDownPress(e);
|
|
62
|
+
onPressIn === null || onPressIn === void 0 || onPressIn(e);
|
|
64
63
|
}
|
|
65
64
|
}, [onKeyDownPress, onPressIn]);
|
|
66
65
|
return /*#__PURE__*/_react.default.createElement(_KeyboardFocusView.KeyboardFocusView, {
|
|
@@ -79,5 +78,4 @@ const Pressable = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
|
79
78
|
onLongPress: onLongPress
|
|
80
79
|
}, props)));
|
|
81
80
|
});
|
|
82
|
-
exports.Pressable = Pressable;
|
|
83
81
|
//# sourceMappingURL=Pressable.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_KeyboardFocusView","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ANDROID_SPACE_KEY_CODE","Pressable","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_KeyboardFocusView","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ANDROID_SPACE_KEY_CODE","Pressable","exports","React","forwardRef","canBeFocused","focusStyle","style","onFocusChange","onPress","onLongPress","onKeyDownPress","onPressOut","onPressIn","props","ref","onKeyUpPressHandler","useCallback","e","nativeEvent","keyCode","isLongPress","onPressablePressHandler","event","identifier","undefined","onKeyDownHandler","createElement","KeyboardFocusView","withView","onKeyUpPress"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.android.tsx"],"mappings":";;;;;;AAUA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,kBAAA,GAAAF,OAAA;AAAyD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,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MG,gBAAgB,GAAGvB,cAAK,CAACc,WAAW,CACvCC,CAAC,IAAK;IACL,MAAM;MACJC,WAAW,EAAE;QAAEC;MAAQ;IACzB,CAAC,GAAGF,CAAC;IAEL,IAAIE,OAAO,KAAKpB,sBAAsB,EAAE;MACtCW,cAAc,aAAdA,cAAc,eAAdA,cAAc,CAAGO,CAAC,CAAC;MACnBL,SAAS,aAATA,SAAS,eAATA,SAAS,CAAGK,CAAqC,CAAC;IACpD;EACF,CAAC,EACD,CAACP,cAAc,EAAEE,SAAS,CAC5B,CAAC;EAED,oBACEnC,MAAA,CAAAO,OAAA,CAAA0C,aAAA,CAAC7C,kBAAA,CAAA8C,iBAAiB;IAChBrB,KAAK,EAAEA,KAAM;IACbD,UAAU,EAAEA,UAAW;IACvBS,GAAG,EAAEA,GAAI;IACTc,QAAQ,EAAE,KAAM;IAChBC,YAAY,EAAEd,mBAAoB;IAClCL,cAAc,EAAEe,gBAAiB;IACjCrB,YAAY,EAAEA,YAAa;IAC3BG,aAAa,EAAEA;EAAc,gBAE7B9B,MAAA,CAAAO,OAAA,CAAA0C,aAAA,CAAC9C,YAAA,CAAAoB,SAAW,EAAAf,QAAA;IACV0B,UAAU,EAAEA,UAAW;IACvBC,SAAS,EAAEA,SAAU;IACrBJ,OAAO,EAAEa,uBAAwB;IACjCZ,WAAW,EAAEA;EAAY,GACrBI,KAAK,CACV,CACgB,CAAC;AAExB,CACF,CAAC"}
|
|
@@ -10,13 +10,13 @@ var _usePressability = _interopRequireDefault(require("react-native/Libraries/Pr
|
|
|
10
10
|
var _useAndroidRippleForView = _interopRequireDefault(require("react-native/Libraries/Components/Pressable/useAndroidRippleForView"));
|
|
11
11
|
var _KeyboardFocusView = require("../KeyboardFocusView");
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // @ts-ignore: import from origin pressable
|
|
16
16
|
// @ts-ignore: import from origin pressable
|
|
17
17
|
// @ts-ignore: import from origin pressable
|
|
18
18
|
const IOS_SPACE_KEY_CODE = 44;
|
|
19
|
-
const Pressable = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, forwardedRef) => {
|
|
19
|
+
const Pressable = exports.Pressable = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, forwardedRef) => {
|
|
20
20
|
var _props$accessibilityV, _props$accessibilityV2, _props$accessibilityV3, _props$accessibilityV4;
|
|
21
21
|
const {
|
|
22
22
|
accessibilityState,
|
|
@@ -123,18 +123,18 @@ const Pressable = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
123
123
|
const onKeyUpPress = _react.default.useCallback(e => {
|
|
124
124
|
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
125
125
|
var _config$onPressOut;
|
|
126
|
-
config === null || config === void 0
|
|
126
|
+
config === null || config === void 0 || (_config$onPressOut = config.onPressOut) === null || _config$onPressOut === void 0 || _config$onPressOut.call(config, e);
|
|
127
127
|
if (e.nativeEvent.isLongPress) {
|
|
128
|
-
onLongPress === null || onLongPress === void 0
|
|
128
|
+
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
129
129
|
} else {
|
|
130
|
-
onPress === null || onPress === void 0
|
|
130
|
+
onPress === null || onPress === void 0 || onPress(e);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}, [onLongPress, onPress, config]);
|
|
134
134
|
const onKeyDownPress = _react.default.useCallback(e => {
|
|
135
135
|
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
136
136
|
var _config$onPressIn;
|
|
137
|
-
config === null || config === void 0
|
|
137
|
+
config === null || config === void 0 || (_config$onPressIn = config.onPressIn) === null || _config$onPressIn === void 0 || _config$onPressIn.call(config, e);
|
|
138
138
|
}
|
|
139
139
|
}, [config]);
|
|
140
140
|
return /*#__PURE__*/_react.default.createElement(_KeyboardFocusView.KeyboardFocusView, _extends({}, restPropsWithDefaults, eventHandlers, {
|
|
@@ -151,7 +151,6 @@ const Pressable = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.
|
|
|
151
151
|
pressed
|
|
152
152
|
}) : children);
|
|
153
153
|
}));
|
|
154
|
-
exports.Pressable = Pressable;
|
|
155
154
|
function usePressState(forcePressed) {
|
|
156
155
|
const [pressed, setPressed] = (0, _react.useState)(false);
|
|
157
156
|
return [pressed || forcePressed, setPressed];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_Rect","_usePressability","_interopRequireDefault","_useAndroidRippleForView","_KeyboardFocusView","obj","__esModule","default","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_Rect","_usePressability","_interopRequireDefault","_useAndroidRippleForView","_KeyboardFocusView","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","IOS_SPACE_KEY_CODE","Pressable","exports","React","memo","forwardRef","props","forwardedRef","_props$accessibilityV","_props$accessibilityV2","_props$accessibilityV3","_props$accessibilityV4","accessibilityState","ariaLive","android_disableSound","android_ripple","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaLabel","ariaSelected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay","canBeFocused","onFocusChange","restProps","viewRef","useRef","useImperativeHandle","current","hitSlop","normalizeRect","android_rippleConfig","useAndroidRippleForView","pressed","setPressed","usePressState","_accessibilityState","busy","checked","expanded","selected","accessibilityValue","max","min","now","text","accessibilityLiveRegion","accessibilityLabel","restPropsWithDefaults","viewProps","accessibilityViewIsModal","config","useMemo","pressRectOffset","delayPressIn","event","onPressMove","eventHandlers","usePressability","onKeyUpPress","useCallback","nativeEvent","keyCode","_config$onPressOut","isLongPress","onKeyDownPress","_config$onPressIn","createElement","KeyboardFocusView","ref","collapsable","forcePressed","useState"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.ios.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AAAyD,SAAAG,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF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W,CAACC,OAAO,KAAK/E,kBAAkB,EAAE;MAAA,IAAAmF,iBAAA;MAChDf,MAAM,aAANA,MAAM,gBAAAe,iBAAA,GAANf,MAAM,CAAEnC,SAAS,cAAAkD,iBAAA,eAAjBA,iBAAA,CAAA/F,IAAA,CAAAgF,MAAM,EAAc/F,CAAqC,CAAC;IAC5D;EACF,CAAC,EACD,CAAC+F,MAAM,CACT,CAAC;EAED,oBACE3G,MAAA,CAAAU,OAAA,CAAAiH,aAAA,CAACpH,kBAAA,CAAAqH,iBAAiB,EAAA9F,QAAA,KACZ0E,qBAAqB,EACrBS,aAAa;IACjBnC,YAAY,EAAEA,YAAa;IAC3BC,aAAa,EAAEA,aAAc;IAC7BoC,YAAY,EAAEA,YAAa;IAC3BM,cAAc,EAAEA,cAAe;IAC/BI,GAAG,EAAE5C,OAAQ;IACbN,KAAK,EAAE,OAAOA,KAAK,KAAK,UAAU,GAAGA,KAAK,CAAC;MAAEc;IAAQ,CAAC,CAAC,GAAGd,KAAM;IAChEmD,WAAW,EAAE;EAAM,IAElB,OAAOhE,QAAQ,KAAK,UAAU,GAAGA,QAAQ,CAAC;IAAE2B;EAAQ,CAAC,CAAC,GAAG3B,QACzC,CAAC;AAExB,CAAC,CACH,CAAC;AAED,SAAS6B,aAAaA,CAACoC,YAAqB,EAAmC;EAC7E,MAAM,CAACtC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAsC,eAAQ,EAAC,KAAK,CAAC;EAC7C,OAAO,CAACvC,OAAO,IAAIsC,YAAY,EAAErC,UAAU,CAAC;AAC9C"}
|
|
@@ -6,6 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
var _default = (0, _codegenNativeComponent.default)('ExternalKeyboardView');
|
|
10
|
-
exports.default = _default;
|
|
9
|
+
var _default = exports.default = (0, _codegenNativeComponent.default)('ExternalKeyboardView');
|
|
11
10
|
//# sourceMappingURL=ExternalKeyboardViewNativeComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","exports","codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAoC9E,IAAAG,+BAAsB,EACnC,sBACF,CAAC"}
|
|
@@ -5,6 +5,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _default = _reactNative.TurboModuleRegistry.get('A11yKeyboardModule');
|
|
9
|
-
exports.default = _default;
|
|
8
|
+
var _default = exports.default = _reactNative.TurboModuleRegistry.get('A11yKeyboardModule');
|
|
10
9
|
//# sourceMappingURL=NativeKeyboardModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpec/NativeKeyboardModule.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAOpCC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC"}
|
|
@@ -17,6 +17,5 @@ class A11yAndroidImpl {
|
|
|
17
17
|
}
|
|
18
18
|
setPreferredKeyboardFocus = () => {};
|
|
19
19
|
}
|
|
20
|
-
const A11yModule = new A11yAndroidImpl();
|
|
21
|
-
exports.A11yModule = A11yModule;
|
|
20
|
+
const A11yModule = exports.A11yModule = new A11yAndroidImpl();
|
|
22
21
|
//# sourceMappingURL=A11yModule.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeModules","A11yAndroidImpl","setKeyboardFocus","ref","tag","findNodeHandle","current","InteractionManager","runAfterInteractions","A11yKeyboardModule","setPreferredKeyboardFocus","A11yModule","exports"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.android.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,MAAME,eAAe,CAAwB;EAC3CC,gBAAgBA,CAACC,GAAqC,EAAE;IACtD,MAAMC,GAAG,GAAG,IAAAC,2BAAc,EAACF,GAAG,CAACG,OAAO,CAAC;IACvC,IAAIF,GAAG,EAAE;MACPG,+BAAkB,CAACC,oBAAoB,CAAC,MAAM;QAC5CC,iCAAkB,CAACP,gBAAgB,CAACE,GAAG,CAAC;MAC1C,CAAC,CAAC;IACJ;EACF;EAEAM,yBAAyB,GAAGA,CAAA,KAAM,CAAC,CAAC;AACtC;AAEO,MAAMC,UAAU,GAAG,IAAIV,eAAe,CAAC,CAAC
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeModules","A11yAndroidImpl","setKeyboardFocus","ref","tag","findNodeHandle","current","InteractionManager","runAfterInteractions","A11yKeyboardModule","setPreferredKeyboardFocus","A11yModule","exports"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.android.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,MAAME,eAAe,CAAwB;EAC3CC,gBAAgBA,CAACC,GAAqC,EAAE;IACtD,MAAMC,GAAG,GAAG,IAAAC,2BAAc,EAACF,GAAG,CAACG,OAAO,CAAC;IACvC,IAAIF,GAAG,EAAE;MACPG,+BAAkB,CAACC,oBAAoB,CAAC,MAAM;QAC5CC,iCAAkB,CAACP,gBAAgB,CAACE,GAAG,CAAC;MAC1C,CAAC,CAAC;IACJ;EACF;EAEAM,yBAAyB,GAAGA,CAAA,KAAM,CAAC,CAAC;AACtC;AAEO,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAIV,eAAe,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeModules","A11yModuleIOSImpl","_currentFocusedTag","currentFocusedTag","value","setPreferredKeyboardFocus","tag","targetTag","Number","isInteger","A11yKeyboardModule","setKeyboardFocus","ref","findNodeHandle","current","A11yModule","exports"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.ios.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,MAAME,iBAAiB,CAAwB;EACrCC,kBAAkB,GAAkB,IAAI;EAEhD,IAAIC,iBAAiBA,CAACC,KAAa,EAAE;IACnC,IAAI,CAACF,kBAAkB,GAAGE,KAAK;EACjC;EAEAC,yBAAyB,GAAGA,CAACC,GAAW,EAAEC,SAAiB,KAAK;IAC9D,IAAIC,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,IAAIE,MAAM,CAACC,SAAS,CAACF,SAAS,CAAC,EAAE;MACxDG,iCAAkB,CAACL,yBAAyB,CAACC,GAAG,EAAEC,SAAS,CAAC;IAC9D;EACF,CAAC;EAEDI,gBAAgB,GAAIC,GAAe,IAAK;IACtC,MAAMN,GAAG,GAAG,IAAAO,2BAAc,EAACD,GAAG,CAACE,OAAO,CAAC;IAEvC,IACE,IAAI,CAACZ,kBAAkB,IACvBI,GAAG,IACHE,MAAM,CAACC,SAAS,CAAC,IAAI,CAACP,kBAAkB,CAAC,IACzCM,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,EACrB;MACAI,iCAAkB,CAACC,gBAAgB,CAAC,IAAI,CAACT,kBAAkB,EAAEI,GAAG,CAAC;IACnE;EACF,CAAC;AACH;AAEO,MAAMS,UAAU,GAAG,IAAId,iBAAiB,CAAC,CAAC
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeModules","A11yModuleIOSImpl","_currentFocusedTag","currentFocusedTag","value","setPreferredKeyboardFocus","tag","targetTag","Number","isInteger","A11yKeyboardModule","setKeyboardFocus","ref","findNodeHandle","current","A11yModule","exports"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.ios.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,MAAME,iBAAiB,CAAwB;EACrCC,kBAAkB,GAAkB,IAAI;EAEhD,IAAIC,iBAAiBA,CAACC,KAAa,EAAE;IACnC,IAAI,CAACF,kBAAkB,GAAGE,KAAK;EACjC;EAEAC,yBAAyB,GAAGA,CAACC,GAAW,EAAEC,SAAiB,KAAK;IAC9D,IAAIC,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,IAAIE,MAAM,CAACC,SAAS,CAACF,SAAS,CAAC,EAAE;MACxDG,iCAAkB,CAACL,yBAAyB,CAACC,GAAG,EAAEC,SAAS,CAAC;IAC9D;EACF,CAAC;EAEDI,gBAAgB,GAAIC,GAAe,IAAK;IACtC,MAAMN,GAAG,GAAG,IAAAO,2BAAc,EAACD,GAAG,CAACE,OAAO,CAAC;IAEvC,IACE,IAAI,CAACZ,kBAAkB,IACvBI,GAAG,IACHE,MAAM,CAACC,SAAS,CAAC,IAAI,CAACP,kBAAkB,CAAC,IACzCM,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,EACrB;MACAI,iCAAkB,CAACC,gBAAgB,CAAC,IAAI,CAACT,kBAAkB,EAAEI,GAAG,CAAC;IACnE;EACF,CAAC;AACH;AAEO,MAAMS,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAId,iBAAiB,CAAC,CAAC"}
|
|
@@ -12,8 +12,7 @@ const RCA11y = A11yModule || new Proxy({}, {
|
|
|
12
12
|
throw new Error(LINKING_ERROR);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
const setKeyboardFocus =
|
|
16
|
-
let _nextTag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
15
|
+
const setKeyboardFocus = (nativeTag, _nextTag = 0) => {
|
|
17
16
|
RCA11y.setKeyboardFocus(nativeTag, _nextTag);
|
|
18
17
|
};
|
|
19
18
|
const setPreferredKeyboardFocus = (nativeTag, nextTag) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yModule","require","A11yKeyboardModule","RCA11y","Proxy","get","Error","setKeyboardFocus","nativeTag","_nextTag","
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","isTurboModuleEnabled","global","__turboModuleProxy","A11yModule","require","A11yKeyboardModule","RCA11y","Proxy","get","Error","setKeyboardFocus","nativeTag","_nextTag","setPreferredKeyboardFocus","nextTag","setAccessibilityFocus"],"sourceRoot":"../../../../src","sources":["NativeModules/A11yKeyboardModule/A11yKeyboardModule.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,MAAMC,aAAa,GAChB,0FAAyFD,QAAQ,CAACE,MAAM,CACvG;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CACvD,CAAE,sDAAqD,GACtD,+BAA8B;;AAEjC;AACA,MAAMC,oBAAoB,GAAGC,MAAM,CAACC,kBAAkB,IAAI,IAAI;AAE9D,MAAMC,UAAU,GAAGH,oBAAoB,GACnCI,OAAO,CAAC,uCAAuC,CAAC,CAACL,OAAO,GACxDL,aAAa,CAACW,kBAAkB;AAEpC,MAAMC,MAAM,GACVH,UAAU,IACV,IAAII,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACb,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEH,MAAMc,gBAAgB,GAAGA,CAACC,SAAiB,EAAEC,QAAQ,GAAG,CAAC,KAAK;EAC5DN,MAAM,CAACI,gBAAgB,CAACC,SAAS,EAAEC,QAAQ,CAAC;AAC9C,CAAC;AAED,MAAMC,yBAAyB,GAAGA,CAACF,SAAiB,EAAEG,OAAe,KAAK;EACxER,MAAM,CAACS,qBAAqB,CAACJ,SAAS,EAAEG,OAAO,CAAC;AAClD,CAAC;AAED,OAAO,MAAMT,kBAAkB,GAAG;EAChCK,gBAAgB;EAChBG;AACF,CAAC"}
|
|
@@ -3,18 +3,17 @@ import React from 'react';
|
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { useFocusStyle } from './hooks/useFocusStyle';
|
|
5
5
|
import { ExternalKeyboardView } from '../../nativeSpec';
|
|
6
|
-
export const KeyboardFocusView = /*#__PURE__*/React.forwardRef((
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
6
|
+
export const KeyboardFocusView = /*#__PURE__*/React.forwardRef(({
|
|
7
|
+
canBeFocused = true,
|
|
8
|
+
onFocusChange,
|
|
9
|
+
focusStyle,
|
|
10
|
+
children,
|
|
11
|
+
style,
|
|
12
|
+
withView = true,
|
|
13
|
+
onKeyUpPress,
|
|
14
|
+
onKeyDownPress,
|
|
15
|
+
...props
|
|
16
|
+
}, ref) => {
|
|
18
17
|
const {
|
|
19
18
|
fStyle,
|
|
20
19
|
onFocusChangeHandler
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","useFocusStyle","ExternalKeyboardView","KeyboardFocusView","forwardRef","
|
|
1
|
+
{"version":3,"names":["React","View","useFocusStyle","ExternalKeyboardView","KeyboardFocusView","forwardRef","canBeFocused","onFocusChange","focusStyle","children","style","withView","onKeyUpPress","onKeyDownPress","props","ref","fStyle","onFocusChangeHandler","createElement","_extends","accessible"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,oBAAoB,QAAQ,kBAAkB;AAGvD,OAAO,MAAMC,iBAAiB,gBAAGJ,KAAK,CAACK,UAAU,CAC/C,CACE;EACEC,YAAY,GAAG,IAAI;EACnBC,aAAa;EACbC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,QAAQ,GAAG,IAAI;EACfC,YAAY;EACZC,cAAc;EACd,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAM;IAAEC,MAAM;IAAEC;EAAqB,CAAC,GAAGf,aAAa,CACpDM,UAAU,EACVD,aACF,CAAC;EAED,oBACEP,KAAA,CAAAkB,aAAA,CAACf,oBAAoB,EAAAgB,QAAA;IACnBZ,aAAa,EAAEU,oBAAqB;IACpCP,KAAK,EAAE,CAACA,KAAK,EAAEM,MAAM,CAAE;IACvBV,YAAY,EAAEA,YAAa;IAC3BS,GAAG,EAAEA,GAAI;IACTH,YAAY,EAAEA,YAAa;IAC3BC,cAAc,EAAEA;EAAe,GAC3BC,KAAK,GAERH,QAAQ,gBAAGX,KAAA,CAAAkB,aAAA,CAACjB,IAAI;IAACmB,UAAU;EAAA,GAAEX,QAAe,CAAC,GAAGA,QAC7B,CAAC;AAE3B,CACF,CAAC"}
|
|
@@ -3,23 +3,22 @@ import React, { useCallback } from 'react';
|
|
|
3
3
|
import { ExternalKeyboardView } from '../../nativeSpec';
|
|
4
4
|
import { A11yModule } from '../../services';
|
|
5
5
|
import { useFocusStyle } from './hooks';
|
|
6
|
-
export const KeyboardFocusView = /*#__PURE__*/React.forwardRef((
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
6
|
+
export const KeyboardFocusView = /*#__PURE__*/React.forwardRef(({
|
|
7
|
+
onFocusChange,
|
|
8
|
+
style,
|
|
9
|
+
focusStyle,
|
|
10
|
+
canBeFocused = true,
|
|
11
|
+
onKeyUpPress,
|
|
12
|
+
onKeyDownPress,
|
|
13
|
+
...props
|
|
14
|
+
}, ref) => {
|
|
16
15
|
const setCurrentFocusTag = useCallback(e => {
|
|
17
16
|
var _e$nativeEvent;
|
|
18
|
-
A11yModule.currentFocusedTag = (e === null || e === void 0
|
|
17
|
+
A11yModule.currentFocusedTag = (e === null || e === void 0 || (_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.target) || undefined;
|
|
19
18
|
}, []);
|
|
20
19
|
const onFocus = useCallback(e => {
|
|
21
20
|
setCurrentFocusTag(e);
|
|
22
|
-
onFocusChange === null || onFocusChange === void 0
|
|
21
|
+
onFocusChange === null || onFocusChange === void 0 || onFocusChange(e);
|
|
23
22
|
}, [onFocusChange, setCurrentFocusTag]);
|
|
24
23
|
const {
|
|
25
24
|
fStyle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","ExternalKeyboardView","A11yModule","useFocusStyle","KeyboardFocusView","forwardRef","
|
|
1
|
+
{"version":3,"names":["React","useCallback","ExternalKeyboardView","A11yModule","useFocusStyle","KeyboardFocusView","forwardRef","onFocusChange","style","focusStyle","canBeFocused","onKeyUpPress","onKeyDownPress","props","ref","setCurrentFocusTag","e","_e$nativeEvent","currentFocusedTag","nativeEvent","target","undefined","onFocus","fStyle","onFocusChangeHandler","createElement","_extends"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.ios.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,QAAQ,OAAO;AAE1C,SAASC,oBAAoB,QAAQ,kBAAkB;AAEvD,SAASC,UAAU,QAAQ,gBAAgB;AAE3C,SAASC,aAAa,QAAQ,SAAS;AAEvC,OAAO,MAAMC,iBAAiB,gBAAGL,KAAK,CAACM,UAAU,CAC/C,CACE;EACEC,aAAa;EACbC,KAAK;EACLC,UAAU;EACVC,YAAY,GAAG,IAAI;EACnBC,YAAY;EACZC,cAAc;EACd,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,kBAAkB,GAAGd,WAAW,CACnCe,CAAsC,IAAK;IAAA,IAAAC,cAAA;IAC1Cd,UAAU,CAACe,iBAAiB,GAAG,CAAAF,CAAC,aAADA,CAAC,gBAAAC,cAAA,GAADD,CAAC,CAAEG,WAAW,cAAAF,cAAA,uBAAdA,cAAA,CAAgBG,MAAM,KAAIC,SAAS;EACpE,CAAC,EACD,EACF,CAAC;EAED,MAAMC,OAAO,GAAGrB,WAAW,CACxBe,CAAC,IAAK;IACLD,kBAAkB,CAACC,CAAC,CAAC;IACrBT,aAAa,aAAbA,aAAa,eAAbA,aAAa,CAAGS,CAAC,CAAC;EACpB,CAAC,EACD,CAACT,aAAa,EAAEQ,kBAAkB,CACpC,CAAC;EAED,MAAM;IAAEQ,MAAM;IAAEC;EAAqB,CAAC,GAAGpB,aAAa,CAACK,UAAU,EAAEa,OAAO,CAAC;EAE3E,oBACEtB,KAAA,CAAAyB,aAAA,CAACvB,oBAAoB,EAAAwB,QAAA;IACnBZ,GAAG,EAAEA,GAAI;IACTN,KAAK,EAAE,CAACA,KAAK,EAAEe,MAAM,CAAE;IACvBb,YAAY,EAAEA,YAAa;IAC3BC,YAAY,EAAEA,YAAa;IAC3BC,cAAc,EAAEA,cAAe;IAC/BL,aAAa,EAAEiB;EAAqB,GAChCX,KAAK,CACV,CAAC;AAEN,CACF,CAAC"}
|
|
@@ -4,7 +4,7 @@ export const useFocusStyle = (focusStyle, onFocusChange) => {
|
|
|
4
4
|
const [focused, setFocusStatus] = useState(false);
|
|
5
5
|
const onFocusChangeHandler = event => {
|
|
6
6
|
setFocusStatus(event.nativeEvent.isFocused);
|
|
7
|
-
onFocusChange === null || onFocusChange === void 0
|
|
7
|
+
onFocusChange === null || onFocusChange === void 0 || onFocusChange(event);
|
|
8
8
|
};
|
|
9
9
|
const fStyle = useMemo(() => {
|
|
10
10
|
if (!focusStyle) return focused ? styles.defaultHighlight : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","useMemo","StyleSheet","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","onFocusChangeHandler","event","nativeEvent","isFocused","fStyle","styles","defaultHighlight","undefined","specificStyle","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;AAGzC,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA+B,KAC5B;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAGP,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMQ,oBAAqC,GAAIC,KAAK,IAAK;IACvDF,cAAc,CAACE,KAAK,CAACC,WAAW,CAACC,SAAS,CAAC;IAC3CN,aAAa,aAAbA,aAAa,
|
|
1
|
+
{"version":3,"names":["useState","useMemo","StyleSheet","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","onFocusChangeHandler","event","nativeEvent","isFocused","fStyle","styles","defaultHighlight","undefined","specificStyle","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,OAAO,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;AAGzC,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA+B,KAC5B;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAGP,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMQ,oBAAqC,GAAIC,KAAK,IAAK;IACvDF,cAAc,CAACE,KAAK,CAACC,WAAW,CAACC,SAAS,CAAC;IAC3CN,aAAa,aAAbA,aAAa,eAAbA,aAAa,CAAGI,KAAK,CAAC;EACxB,CAAC;EAED,MAAMG,MAAM,GAAGX,OAAO,CAAC,MAAM;IAC3B,IAAI,CAACG,UAAU,EAAE,OAAOE,OAAO,GAAGO,MAAM,CAACC,gBAAgB,GAAGC,SAAS;IACrE,MAAMC,aAAa,GACjB,OAAOZ,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEE;IAAQ,CAAC,CAAC,GAAGF,UAAU;IACzE,OAAOE,OAAO,GAAGU,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACT,OAAO,EAAEF,UAAU,CAAC,CAAC;EAEzB,OAAO;IACLI,oBAAoB;IACpBI;EACF,CAAC;AACH,CAAC;AAED,MAAMC,MAAM,GAAGX,UAAU,CAACe,MAAM,CAAC;EAC/BH,gBAAgB,EAAE;IAAEI,eAAe,EAAE;EAAU;AACjD,CAAC,CAAC"}
|
|
@@ -13,19 +13,18 @@ import React from 'react';
|
|
|
13
13
|
import { Pressable as RNPressable } from 'react-native';
|
|
14
14
|
import { KeyboardFocusView } from '../KeyboardFocusView';
|
|
15
15
|
const ANDROID_SPACE_KEY_CODE = 62;
|
|
16
|
-
export const Pressable = /*#__PURE__*/React.forwardRef((
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
16
|
+
export const Pressable = /*#__PURE__*/React.forwardRef(({
|
|
17
|
+
canBeFocused,
|
|
18
|
+
focusStyle,
|
|
19
|
+
style,
|
|
20
|
+
onFocusChange,
|
|
21
|
+
onPress,
|
|
22
|
+
onLongPress,
|
|
23
|
+
onKeyDownPress,
|
|
24
|
+
onPressOut,
|
|
25
|
+
onPressIn,
|
|
26
|
+
...props
|
|
27
|
+
}, ref) => {
|
|
29
28
|
const onKeyUpPressHandler = React.useCallback(e => {
|
|
30
29
|
const {
|
|
31
30
|
nativeEvent: {
|
|
@@ -34,17 +33,17 @@ export const Pressable = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
34
33
|
}
|
|
35
34
|
} = e;
|
|
36
35
|
if (keyCode === ANDROID_SPACE_KEY_CODE) {
|
|
37
|
-
onPressOut === null || onPressOut === void 0
|
|
36
|
+
onPressOut === null || onPressOut === void 0 || onPressOut(e);
|
|
38
37
|
if (isLongPress) {
|
|
39
|
-
onLongPress === null || onLongPress === void 0
|
|
38
|
+
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
40
39
|
} else {
|
|
41
|
-
onPress === null || onPress === void 0
|
|
40
|
+
onPress === null || onPress === void 0 || onPress(e);
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
}, [onLongPress, onPress, onPressOut]);
|
|
45
44
|
const onPressablePressHandler = event => {
|
|
46
45
|
if (event.nativeEvent.identifier !== undefined) {
|
|
47
|
-
onPress === null || onPress === void 0
|
|
46
|
+
onPress === null || onPress === void 0 || onPress(event);
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
const onKeyDownHandler = React.useCallback(e => {
|
|
@@ -54,8 +53,8 @@ export const Pressable = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
54
53
|
}
|
|
55
54
|
} = e;
|
|
56
55
|
if (keyCode === ANDROID_SPACE_KEY_CODE) {
|
|
57
|
-
onKeyDownPress === null || onKeyDownPress === void 0
|
|
58
|
-
onPressIn === null || onPressIn === void 0
|
|
56
|
+
onKeyDownPress === null || onKeyDownPress === void 0 || onKeyDownPress(e);
|
|
57
|
+
onPressIn === null || onPressIn === void 0 || onPressIn(e);
|
|
59
58
|
}
|
|
60
59
|
}, [onKeyDownPress, onPressIn]);
|
|
61
60
|
return /*#__PURE__*/React.createElement(KeyboardFocusView, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Pressable","RNPressable","KeyboardFocusView","ANDROID_SPACE_KEY_CODE","forwardRef","
|
|
1
|
+
{"version":3,"names":["React","Pressable","RNPressable","KeyboardFocusView","ANDROID_SPACE_KEY_CODE","forwardRef","canBeFocused","focusStyle","style","onFocusChange","onPress","onLongPress","onKeyDownPress","onPressOut","onPressIn","props","ref","onKeyUpPressHandler","useCallback","e","nativeEvent","keyCode","isLongPress","onPressablePressHandler","event","identifier","undefined","onKeyDownHandler","createElement","withView","onKeyUpPress","_extends"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.android.tsx"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,SAAS,IAAIC,WAAW,QAGnB,cAAc;AAErB,SAASC,iBAAiB,QAAQ,sBAAsB;AAExD,MAAMC,sBAAsB,GAAG,EAAE;AAEjC,OAAO,MAAMH,SAAS,gBAAGD,KAAK,CAACK,UAAU,CAIvC,CACE;EACEC,YAAY;EACZC,UAAU;EACVC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,WAAW;EACXC,cAAc;EACdC,UAAU;EACVC,SAAS;EACT,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,mBAAmB,GAAGjB,KAAK,CAACkB,WAAW,CAC1CC,CAAC,IAAK;IACL,MAAM;MACJC,WAAW,EAAE;QAAEC,OAAO;QAAEC;MAAY;IACtC,CAAC,GAAGH,CAAC;IAEL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S,EAAEA,SAAU;IACrBJ,OAAO,EAAEa,uBAAwB;IACjCZ,WAAW,EAAEA;EAAY,GACrBI,KAAK,CACV,CACgB,CAAC;AAExB,CACF,CAAC"}
|
|
@@ -115,18 +115,18 @@ export const Pressable = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(
|
|
|
115
115
|
const onKeyUpPress = React.useCallback(e => {
|
|
116
116
|
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
117
117
|
var _config$onPressOut;
|
|
118
|
-
config === null || config === void 0
|
|
118
|
+
config === null || config === void 0 || (_config$onPressOut = config.onPressOut) === null || _config$onPressOut === void 0 || _config$onPressOut.call(config, e);
|
|
119
119
|
if (e.nativeEvent.isLongPress) {
|
|
120
|
-
onLongPress === null || onLongPress === void 0
|
|
120
|
+
onLongPress === null || onLongPress === void 0 || onLongPress(e);
|
|
121
121
|
} else {
|
|
122
|
-
onPress === null || onPress === void 0
|
|
122
|
+
onPress === null || onPress === void 0 || onPress(e);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, [onLongPress, onPress, config]);
|
|
126
126
|
const onKeyDownPress = React.useCallback(e => {
|
|
127
127
|
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
128
128
|
var _config$onPressIn;
|
|
129
|
-
config === null || config === void 0
|
|
129
|
+
config === null || config === void 0 || (_config$onPressIn = config.onPressIn) === null || _config$onPressIn === void 0 || _config$onPressIn.call(config, e);
|
|
130
130
|
}
|
|
131
131
|
}, [config]);
|
|
132
132
|
return /*#__PURE__*/React.createElement(KeyboardFocusView, _extends({}, restPropsWithDefaults, eventHandlers, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","useState","useRef","useImperativeHandle","normalizeRect","usePressability","useAndroidRippleForView","KeyboardFocusView","IOS_SPACE_KEY_CODE","Pressable","memo","forwardRef","props","forwardedRef","_props$accessibilityV","_props$accessibilityV2","_props$accessibilityV3","_props$accessibilityV4","accessibilityState","ariaLive","android_disableSound","android_ripple","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaLabel","ariaSelected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay","canBeFocused","onFocusChange","restProps","viewRef","current","hitSlop","android_rippleConfig","pressed","setPressed","usePressState","_accessibilityState","busy","checked","expanded","selected","accessibilityValue","max","min","now","text","accessibilityLiveRegion","accessibilityLabel","restPropsWithDefaults","viewProps","accessibilityViewIsModal","config","pressRectOffset","delayPressIn","event","onPressMove","eventHandlers","onKeyUpPress","useCallback","e","nativeEvent","keyCode","_config$onPressOut","call","isLongPress","onKeyDownPress","_config$onPressIn","createElement","_extends","ref","collapsable","forcePressed"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.ios.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,mBAAmB,QAAQ,OAAO;AAG7E;AACA,SAASC,aAAa,QAAQ,wCAAwC;AACtE;AACA,OAAOC,eAAe,MAAM,qDAAqD;AACjF;AACA,OAAOC,uBAAuB,MAAM,qEAAqE;AAEzG,SAASC,iBAAiB,QAAQ,sBAAsB;AAoFxD,MAAMC,kBAAkB,GAAG,EAAE;AAE7B,OAAO,MAAMC,SAAS,gBAAGV,KAAK,CAACW,IAAI,eACjCX,KAAK,CAACY,UAAU,CAAc,CAACC,KAAY,EAAEC,YAAY,KAAK;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAC5D,MAAM;IACJC,kBAAkB;IAClB,WAAW,EAAEC,QAAQ;IACrBC,oBAAoB;IACpBC,cAAc;IACd,WAAW,EAAEC,QAAQ;IACrB,cAAc,EAAEC,WAAW;IAC3B,eAAe,EAAEC,YAAY;IAC7B,eAAe,EAAEC,YAAY;IAC7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AA;MAChDX,MAAM,aAANA,MAAM,
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","useRef","useImperativeHandle","normalizeRect","usePressability","useAndroidRippleForView","KeyboardFocusView","IOS_SPACE_KEY_CODE","Pressable","memo","forwardRef","props","forwardedRef","_props$accessibilityV","_props$accessibilityV2","_props$accessibilityV3","_props$accessibilityV4","accessibilityState","ariaLive","android_disableSound","android_ripple","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaLabel","ariaSelected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay","canBeFocused","onFocusChange","restProps","viewRef","current","hitSlop","android_rippleConfig","pressed","setPressed","usePressState","_accessibilityState","busy","checked","expanded","selected","accessibilityValue","max","min","now","text","accessibilityLiveRegion","accessibilityLabel","restPropsWithDefaults","viewProps","accessibilityViewIsModal","config","pressRectOffset","delayPressIn","event","onPressMove","eventHandlers","onKeyUpPress","useCallback","e","nativeEvent","keyCode","_config$onPressOut","call","isLongPress","onKeyDownPress","_config$onPressIn","createElement","_extends","ref","collapsable","forcePressed"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.ios.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,mBAAmB,QAAQ,OAAO;AAG7E;AACA,SAASC,aAAa,QAAQ,wCAAwC;AACtE;AACA,OAAOC,eAAe,MAAM,qDAAqD;AACjF;AACA,OAAOC,uBAAuB,MAAM,qEAAqE;AAEzG,SAASC,iBAAiB,QAAQ,sBAAsB;AAoFxD,MAAMC,kBAAkB,GAAG,EAAE;AAE7B,OAAO,MAAMC,SAAS,gBAAGV,KAAK,CAACW,IAAI,eACjCX,KAAK,CAACY,UAAU,CAAc,CAACC,KAAY,EAAEC,YAAY,KAAK;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAA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K,EAAE,OAAOA,KAAK,KAAK,UAAU,GAAGA,KAAK,CAAC;MAAEU;IAAQ,CAAC,CAAC,GAAGV,KAAM;IAChE+C,WAAW,EAAE;EAAM,IAElB,OAAO5D,QAAQ,KAAK,UAAU,GAAGA,QAAQ,CAAC;IAAEuB;EAAQ,CAAC,CAAC,GAAGvB,QACzC,CAAC;AAExB,CAAC,CACH,CAAC;AAED,SAASyB,aAAaA,CAACoC,YAAqB,EAAmC;EAC7E,MAAM,CAACtC,OAAO,EAAEC,UAAU,CAAC,GAAGpD,QAAQ,CAAC,KAAK,CAAC;EAC7C,OAAO,CAACmD,OAAO,IAAIsC,YAAY,EAAErC,UAAU,CAAC;AAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAoC5F,eAAeA,sBAAsB,CACnC,sBACF,CAAC"}
|
|
@@ -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,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;CACxB;;AAED,wBAEE"}
|
|
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;CACxB;;AAED,wBAEE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-external-keyboard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "test",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"react-native a11y",
|
|
46
46
|
"keyboard",
|
|
47
47
|
"keyboard focus",
|
|
48
|
+
"physical keyboard",
|
|
48
49
|
"WCAG"
|
|
49
50
|
],
|
|
50
51
|
"repository": "https://github.com/ArturKalach/react-native-external-keyboard",
|