@fluentui-react-native/focus-zone 0.16.13 → 0.16.15

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/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-react-native/focus-zone",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 15 Mar 2024 16:21:20 GMT",
5
+ "date": "Fri, 29 Mar 2024 18:05:03 GMT",
6
+ "version": "0.16.15",
7
+ "tag": "@fluentui-react-native/focus-zone_v0.16.15",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/focus-zone",
13
+ "commit": "a722aa94799f4afee55baa03a5a754b0d4b2fdce",
14
+ "comment": "Use codegenNativeComponent so JS View configs can be generated for all native components"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 15 Mar 2024 16:26:19 GMT",
6
21
  "version": "0.16.13",
7
22
  "tag": "@fluentui-react-native/focus-zone_v0.16.13",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @fluentui-react-native/focus-zone
2
2
 
3
- This log was last generated on Fri, 15 Mar 2024 16:21:20 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 29 Mar 2024 18:05:03 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.16.15
8
+
9
+ Fri, 29 Mar 2024 18:05:03 GMT
10
+
11
+ ### Patches
12
+
13
+ - Use codegenNativeComponent so JS View configs can be generated for all native components (30809111+acoates-ms@users.noreply.github.com)
14
+
7
15
  ## 0.16.13
8
16
 
9
- Fri, 15 Mar 2024 16:21:20 GMT
17
+ Fri, 15 Mar 2024 16:26:19 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  import * as React from 'react';
2
7
  import type { FocusZoneProps, FocusZoneSlotProps } from './FocusZone.types';
3
8
  export declare const FocusZone: import("@uifabricshared/foundation-composable").IWithComposable<React.FunctionComponent<FocusZoneProps>, import("@uifabricshared/foundation-composable").IComposable<FocusZoneProps, FocusZoneSlotProps, import("./FocusZone.types").FocusZoneState>>;
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAM3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
1
+ {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAK3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
package/lib/FocusZone.js CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  var __assign = (this && this.__assign) || function () {
2
7
  __assign = Object.assign || function(t) {
3
8
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -22,11 +27,10 @@ var __rest = (this && this.__rest) || function (s, e) {
22
27
  };
23
28
  import * as React from 'react';
24
29
  import { findNodeHandle } from 'react-native';
25
- import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
26
30
  import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
27
31
  import { composable } from '@uifabricshared/foundation-composable';
28
32
  import { mergeSettings } from '@uifabricshared/foundation-settings';
29
- var RCTFocusZone = ensureNativeComponent('RCTFocusZone');
33
+ import RCTFocusZone from './FocusZoneNativeComponent';
30
34
  var filterOutComponentRef = function (propName) { return propName !== 'componentRef'; };
31
35
  export var FocusZone = composable({
32
36
  usePrepareProps: function (userProps, useStyling) {
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,IAAM,YAAY,GAAG,qBAAqB,CAAC,cAAc,CAAC,CAAC;AAE3D,IAAM,qBAAqB,GAAG,UAAC,QAAQ,IAAK,OAAA,QAAQ,KAAK,cAAc,EAA3B,CAA2B,CAAC;AAExE,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAgB;IACjD,eAAe,EAAE,UAAC,SAAyB,EAAE,UAAsC;QACzE,IAAA,YAAY,GAA4D,SAAS,aAArE,EAAE,sBAAsB,GAAoC,SAAS,uBAA7C,EAAE,oBAAoB,GAAc,SAAS,qBAAvB,EAAK,IAAI,UAAK,SAAS,EAAnF,kEAAuE,CAAF,CAAe;QAE1F,IAAM,MAAM,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAE3C,IAAA,KAAwC,KAAK,CAAC,QAAQ,CAAS,SAAS,CAAC,EAAxE,eAAe,QAAA,EAAE,kBAAkB,QAAqC,CAAC;QAChF,KAAK,CAAC,eAAe,CAAC;YACpB,IAAI,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,OAAO,EAAE;gBACnC,kBAA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AAS,qBAAvB,EAAK,IAAI,UAAK,SAAS,EAAnF,kEAAuE,CAAF,CAAe;QAE1F,IAAM,MAAM,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAE3C,IAAA,KAAwC,KAAK,CAAC,QAAQ,CAAS,SAAS,CAAC,EAAxE,eAAe,QAAA,EAAE,kBAAkB,QAAqC,CAAC;QAChF,KAAK,CAAC,eAAe,CAAC;YACpB,IAAI,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,OAAO,EAAE;gBACnC,kBAAkB,CAAC,cAAc,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;aACpE;iBAAM;gBACL,kBAAkB,CAAC,SAAS,CAAC,CAAC;aAC/B;QACH,CAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAE7B,OAAO;YACL,SAAS,EAAE,aAAa,CAAqB,UAAU,CAAC,SAAS,CAAC,EAAE;gBAClE,IAAI,sBACF,aAAa,EAAE,oBAAoB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,oBAAoB,IACxE,IAAI,KACP,sBAAsB,EAAE,eAAe,EACvC,GAAG,EAAE,MAAM,GACZ;aACF,CAAC;SACH,CAAC;IACJ,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
8
+ export interface NativeProps extends ViewProps {
9
+ navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
10
+ defaultTabbableElement?: Int32;
11
+ focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
12
+ use2DNavigation?: boolean;
13
+ tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
14
+ disabled?: boolean;
15
+ isTabNavigation?: boolean;
16
+ }
17
+ declare const _default: HostComponent<NativeProps>;
18
+ export default _default;
19
+ //# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAGpF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,KAAK,CAAC;IAC/B,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAiG"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
+ export default codegenNativeComponent('RCTFocusZone');
8
+ //# sourceMappingURL=FocusZoneNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAY7F,eAAe,sBAAsB,CAAc,cAAc,CAA+B,CAAC"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  import * as React from 'react';
2
7
  import type { FocusZoneProps, FocusZoneSlotProps } from './FocusZone.types';
3
8
  export declare const FocusZone: import("@uifabricshared/foundation-composable").IWithComposable<React.FunctionComponent<FocusZoneProps>, import("@uifabricshared/foundation-composable").IComposable<FocusZoneProps, FocusZoneSlotProps, import("./FocusZone.types").FocusZoneState>>;
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAM3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
1
+ {"version":3,"file":"FocusZone.d.ts","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAiB,MAAM,mBAAmB,CAAC;AAK3F,eAAO,MAAM,SAAS,uPA6BpB,CAAC"}
@@ -1,4 +1,9 @@
1
1
  "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
2
7
  var __assign = (this && this.__assign) || function () {
3
8
  __assign = Object.assign || function(t) {
4
9
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -44,15 +49,17 @@ var __rest = (this && this.__rest) || function (s, e) {
44
49
  }
45
50
  return t;
46
51
  };
52
+ var __importDefault = (this && this.__importDefault) || function (mod) {
53
+ return (mod && mod.__esModule) ? mod : { "default": mod };
54
+ };
47
55
  Object.defineProperty(exports, "__esModule", { value: true });
48
56
  exports.FocusZone = void 0;
49
57
  var React = __importStar(require("react"));
50
58
  var react_native_1 = require("react-native");
51
- var component_cache_1 = require("@fluentui-react-native/component-cache");
52
59
  var interactive_hooks_1 = require("@fluentui-react-native/interactive-hooks");
53
60
  var foundation_composable_1 = require("@uifabricshared/foundation-composable");
54
61
  var foundation_settings_1 = require("@uifabricshared/foundation-settings");
55
- var RCTFocusZone = (0, component_cache_1.ensureNativeComponent)('RCTFocusZone');
62
+ var FocusZoneNativeComponent_1 = __importDefault(require("./FocusZoneNativeComponent"));
56
63
  var filterOutComponentRef = function (propName) { return propName !== 'componentRef'; };
57
64
  exports.FocusZone = (0, foundation_composable_1.composable)({
58
65
  usePrepareProps: function (userProps, useStyling) {
@@ -74,7 +81,7 @@ exports.FocusZone = (0, foundation_composable_1.composable)({
74
81
  };
75
82
  },
76
83
  slots: {
77
- root: { slotType: RCTFocusZone, filter: filterOutComponentRef },
84
+ root: { slotType: FocusZoneNativeComponent_1.default, filter: filterOutComponentRef },
78
85
  },
79
86
  });
80
87
  //# sourceMappingURL=FocusZone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FocusZone.js","sourceRoot":"","sources":["../src/FocusZone.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,6CAA8C;AAE9C,0EAA+E;AAC/E,8EAA+E;AAE/E,+EAAmE;AACnE,2EAAoE;AAIpE,IAAM,YAAY,GAAG,IAAA,uCAAqB,EAAC,cAAc,CAAC,CAAC;AAE3D,IAAM,qBAAqB,GAAG,UAAC,QAAQ,IAAK,OAAA,QAAQ,K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,EAAE,EAAE,QAAQ,EAAE,kCAAY,EAAE,MAAM,EAAE,qBAAqB,EAAE;KAChE;CACF,CAAC,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
8
+ export interface NativeProps extends ViewProps {
9
+ navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
10
+ defaultTabbableElement?: Int32;
11
+ focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
12
+ use2DNavigation?: boolean;
13
+ tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
14
+ disabled?: boolean;
15
+ isTabNavigation?: boolean;
16
+ }
17
+ declare const _default: HostComponent<NativeProps>;
18
+ export default _default;
19
+ //# sourceMappingURL=FocusZoneNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.d.ts","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAGpF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,aAAa,CAAC,EAAE,WAAW,CAAC,oBAAoB,GAAG,cAAc,GAAG,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;IAC9G,sBAAsB,CAAC,EAAE,KAAK,CAAC;IAC/B,kBAAkB,CAAC,EAAE,WAAW,CAAC,eAAe,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,EAAE,eAAe,CAAC,CAAC;IACxG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,cAAc,GAAG,oBAAoB,GAAG,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;;AAED,wBAAiG"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ var codegenNativeComponent_1 = __importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
12
+ exports.default = (0, codegenNativeComponent_1.default)('RCTFocusZone');
13
+ //# sourceMappingURL=FocusZoneNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FocusZoneNativeComponent.js","sourceRoot":"","sources":["../src/FocusZoneNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;AAKH,mHAA6F;AAY7F,kBAAe,IAAA,gCAAsB,EAAc,cAAc,CAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/focus-zone",
3
- "version": "0.16.13",
3
+ "version": "0.16.15",
4
4
  "description": "A cross-platform FocusZone component using the Fluent Design System",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,8 +22,7 @@
22
22
  "directory": "packages/components/FocusZone"
23
23
  },
24
24
  "dependencies": {
25
- "@fluentui-react-native/component-cache": "1.6.1",
26
- "@fluentui-react-native/interactive-hooks": "0.26.3",
25
+ "@fluentui-react-native/interactive-hooks": "0.26.4",
27
26
  "@uifabricshared/foundation-composable": "0.12.5",
28
27
  "@uifabricshared/foundation-settings": "0.14.1"
29
28
  },
package/src/FocusZone.ts CHANGED
@@ -1,15 +1,19 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+
1
7
  import * as React from 'react';
2
8
  import { findNodeHandle } from 'react-native';
3
9
 
4
- import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
5
10
  import { useViewCommandFocus } from '@fluentui-react-native/interactive-hooks';
6
11
  import type { IUseStyling } from '@uifabricshared/foundation-composable';
7
12
  import { composable } from '@uifabricshared/foundation-composable';
8
13
  import { mergeSettings } from '@uifabricshared/foundation-settings';
9
14
 
10
15
  import type { FocusZoneProps, FocusZoneSlotProps, FocusZoneType } from './FocusZone.types';
11
-
12
- const RCTFocusZone = ensureNativeComponent('RCTFocusZone');
16
+ import RCTFocusZone from './FocusZoneNativeComponent';
13
17
 
14
18
  const filterOutComponentRef = (propName) => propName !== 'componentRef';
15
19
 
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+
7
+ import type { HostComponent, ViewProps } from 'react-native';
8
+
9
+ import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
10
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
11
+
12
+ export interface NativeProps extends ViewProps {
13
+ navigateAtEnd?: WithDefault<'NavigateStopAtEnds' | 'NavigateWrap' | 'NavigateContinue', 'NavigateStopAtEnds'>;
14
+ defaultTabbableElement?: Int32;
15
+ focusZoneDirection?: WithDefault<'bidirectional' | 'vertical' | 'horizontal' | 'none', 'bidirectional'>;
16
+ use2DNavigation?: boolean;
17
+ tabKeyNavigation?: WithDefault<'None' | 'NavigateWrap' | 'NavigateStopAtEnds' | 'Normal', 'None'>;
18
+ disabled?: boolean;
19
+ isTabNavigation?: boolean;
20
+ }
21
+
22
+ export default codegenNativeComponent<NativeProps>('RCTFocusZone') as HostComponent<NativeProps>;