react-native-a11y-order 0.11.0-rc → 1.0.0-alpha.0

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.
Files changed (46) hide show
  1. package/README.md +1 -25
  2. package/android/src/main/java/com/a11yorder/A11yOrderPackage.java +19 -25
  3. package/lib/commonjs/components/A11yIndex/A11yIndex.js +0 -1
  4. package/lib/commonjs/components/A11yIndex/A11yIndex.js.map +1 -1
  5. package/lib/commonjs/nativeSpecs/A11yCardNativeComponent.ts +1 -3
  6. package/lib/commonjs/nativeSpecs/A11yIndexNativeComponent.ts +5 -5
  7. package/lib/commonjs/nativeSpecs/A11yLockNativeComponent.ts +1 -3
  8. package/lib/commonjs/nativeSpecs/A11yOrderNativeComponent.ts +1 -3
  9. package/lib/commonjs/nativeSpecs/A11yPaneTitleNativeComponent.ts +1 -3
  10. package/lib/module/components/A11yIndex/A11yIndex.js +0 -1
  11. package/lib/module/components/A11yIndex/A11yIndex.js.map +1 -1
  12. package/lib/module/nativeSpecs/A11yCardNativeComponent.ts +1 -3
  13. package/lib/module/nativeSpecs/A11yIndexNativeComponent.ts +5 -5
  14. package/lib/module/nativeSpecs/A11yLockNativeComponent.ts +1 -3
  15. package/lib/module/nativeSpecs/A11yOrderNativeComponent.ts +1 -3
  16. package/lib/module/nativeSpecs/A11yPaneTitleNativeComponent.ts +1 -3
  17. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts +2 -26
  18. package/lib/typescript/src/components/A11yCard/A11yCard.types.d.ts.map +1 -1
  19. package/lib/typescript/src/components/A11yIndex/A11yIndex.d.ts.map +1 -1
  20. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts +17 -39
  21. package/lib/typescript/src/components/A11yIndex/A11yIndex.types.d.ts.map +1 -1
  22. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts +4 -8
  23. package/lib/typescript/src/components/A11yLock/A11yLock.types.d.ts.map +1 -1
  24. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts +9 -18
  25. package/lib/typescript/src/components/A11yPaneTitle/A11yPaneTitle.types.d.ts.map +1 -1
  26. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts +2 -4
  27. package/lib/typescript/src/nativeSpecs/A11yCardNativeComponent.d.ts.map +1 -1
  28. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts +2 -4
  29. package/lib/typescript/src/nativeSpecs/A11yIndexNativeComponent.d.ts.map +1 -1
  30. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts +2 -4
  31. package/lib/typescript/src/nativeSpecs/A11yLockNativeComponent.d.ts.map +1 -1
  32. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts +2 -4
  33. package/lib/typescript/src/nativeSpecs/A11yOrderNativeComponent.d.ts.map +1 -1
  34. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts +2 -4
  35. package/lib/typescript/src/nativeSpecs/A11yPaneTitleNativeComponent.d.ts.map +1 -1
  36. package/package.json +8 -11
  37. package/src/components/A11yCard/A11yCard.types.ts +18 -29
  38. package/src/components/A11yIndex/A11yIndex.tsx +3 -2
  39. package/src/components/A11yIndex/A11yIndex.types.ts +17 -39
  40. package/src/components/A11yLock/A11yLock.types.ts +4 -8
  41. package/src/components/A11yPaneTitle/A11yPaneTitle.types.ts +9 -18
  42. package/src/nativeSpecs/A11yCardNativeComponent.ts +1 -3
  43. package/src/nativeSpecs/A11yIndexNativeComponent.ts +5 -5
  44. package/src/nativeSpecs/A11yLockNativeComponent.ts +1 -3
  45. package/src/nativeSpecs/A11yOrderNativeComponent.ts +1 -3
  46. package/src/nativeSpecs/A11yPaneTitleNativeComponent.ts +1 -3
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![react-native-a11y-order](/.github/images/react_native_a11y_order.png)
1
+ [![react-native-a11y-order, Artur Kalach — LinkedIn articles](/.github/images/react_native_a11y_order.png)](https://www.linkedin.com/in/artur-kalach-99477b138/recent-activity/articles/)
2
2
 
3
3
  # React Native A11y Order
4
4
 
@@ -31,13 +31,6 @@ cd ios && pod install
31
31
 
32
32
  Get started with the [getting started guide](./docs/getting-started/getting-started.md) or jump straight to the [component overview](./docs/guides/overview.md).
33
33
 
34
- ## React Native compatibility
35
-
36
- | Library version | React Native |
37
- | :-- | :-- |
38
- | `1.0.0` | ≥ 0.80 |
39
- | `0.11.0` | ≤ 0.79 |
40
-
41
34
  ## What's available
42
35
 
43
36
  | Export | Purpose |
@@ -64,23 +57,6 @@ Get started with the [getting started guide](./docs/getting-started/getting-star
64
57
 
65
58
  ---
66
59
 
67
- ## Roadmap
68
-
69
- All planned features are implemented and released. No new functionality or API changes are planned.
70
-
71
- Future work is limited to:
72
- - React Native version support (new releases)
73
- - Bug fixes and issue resolution
74
-
75
- Both active versions receive fixes:
76
-
77
- | Version | React Native | Status |
78
- | :-- | :-- | :-- |
79
- | `1.0.0` | ≥ 0.80 | Active — bug fixes and new RN support |
80
- | `0.11.0` | ≤ 0.79 | Active — bug fixes only |
81
-
82
- ---
83
-
84
60
  ## Contributing
85
61
 
86
62
  See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
@@ -1,46 +1,42 @@
1
1
  package com.a11yorder;
2
2
 
3
-
4
3
  import com.a11yorder.modules.A11yAnnounceModule;
5
4
  import com.a11yorder.views.A11yCardView.A11yCardViewManager;
6
5
  import com.a11yorder.views.A11yIndexView.A11yIndexViewManager;
7
6
  import com.a11yorder.views.A11yLockView.A11yLockViewManager;
8
7
  import com.a11yorder.views.A11yOrderView.A11yOrderViewManager;
9
8
  import com.a11yorder.views.A11yPaneTitle.A11yPaneTitleManager;
9
+ import com.facebook.react.BaseReactPackage;
10
+ import com.facebook.react.bridge.NativeModule;
11
+ import com.facebook.react.bridge.ReactApplicationContext;
10
12
  import com.facebook.react.module.model.ReactModuleInfo;
11
13
  import com.facebook.react.module.model.ReactModuleInfoProvider;
12
14
  import com.facebook.react.uimanager.ViewManager;
13
- import com.facebook.react.TurboReactPackage;
14
15
 
15
- import java.util.ArrayList;
16
+ import java.util.Arrays;
16
17
  import java.util.HashMap;
17
18
  import java.util.List;
18
19
  import java.util.Map;
19
20
 
20
- import com.facebook.react.bridge.NativeModule;
21
- import com.facebook.react.bridge.ReactApplicationContext;
22
-
23
- public class A11yOrderPackage extends TurboReactPackage {
21
+ public class A11yOrderPackage extends BaseReactPackage {
24
22
 
25
23
  @Override
26
24
  public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
27
- List<ViewManager> viewManagers = new ArrayList<>();
28
- viewManagers.add(new A11yIndexViewManager());
29
- viewManagers.add(new A11yOrderViewManager());
30
- viewManagers.add(new A11yPaneTitleManager());
31
- viewManagers.add(new A11yLockViewManager());
32
- viewManagers.add(new A11yCardViewManager());
33
-
34
- return viewManagers;
25
+ return Arrays.asList(
26
+ new A11yIndexViewManager(),
27
+ new A11yOrderViewManager(),
28
+ new A11yPaneTitleManager(),
29
+ new A11yLockViewManager(),
30
+ new A11yCardViewManager()
31
+ );
35
32
  }
36
33
 
37
34
  @Override
38
35
  public NativeModule getModule(String name, ReactApplicationContext reactContext) {
39
36
  if (name.equals(A11yAnnounceModule.NAME)) {
40
37
  return new A11yAnnounceModule(reactContext);
41
- } else {
42
- return null;
43
38
  }
39
+ return null;
44
40
  }
45
41
 
46
42
  @Override
@@ -49,16 +45,14 @@ public class A11yOrderPackage extends TurboReactPackage {
49
45
  @Override
50
46
  public Map<String, ReactModuleInfo> getReactModuleInfos() {
51
47
  Map<String, ReactModuleInfo> map = new HashMap<>();
52
- boolean isTurboModule = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
53
48
 
54
49
  map.put(A11yAnnounceModule.NAME, new ReactModuleInfo(
55
- A11yAnnounceModule.NAME, // name
56
- A11yAnnounceModule.NAME, // className
57
- false, // canOverrideExistingModule
58
- false, // needsEagerInit
59
- false, // hasConstants to support 0.72
60
- false, // isCXXModule
61
- isTurboModule // isTurboModule
50
+ A11yAnnounceModule.NAME, // name
51
+ A11yAnnounceModule.NAME, // className
52
+ false, // canOverrideExistingModule
53
+ false, // needsEagerInit
54
+ false, // isCxxModule
55
+ BuildConfig.IS_NEW_ARCHITECTURE_ENABLED // isTurboModule
62
56
  ));
63
57
  return map;
64
58
  }
@@ -45,7 +45,6 @@ function useFocusRef(ref) {
45
45
  if (prop === 'focus') {
46
46
  return () => {
47
47
  if (localRef.current) {
48
- // @ts-expect-error Commands.focus type is too generic in codegen
49
48
  _A11yIndexNativeComponent.Commands.focus(localRef.current);
50
49
  }
51
50
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_A11yIndex","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","React","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","useRef","useImperativeHandle","native","current","Proxy","_target","prop","Commands","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","A11ySequenceOrderContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","A11yOrderTypeEnum","importantForAccessibility","A11yIndex","exports","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","A11yContainerTypeEnum","shouldGroupChildrenValue","screenReaderNativeProps","jsx","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,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,KAAK,EAAEC,SAAS,EAAEC,6BAA6B,CAAC;EAEhE,MAAMb,QAAQ,GAAGF,WAAW,CAACC,GAAG,CAAC;EAEjC,oBACE,IAAArC,WAAA,CAAA2E,GAAA,EAAC7E,yBAAA,CAAAa,OAAa;IACZ0B,GAAG,EAAEC,QAA2B;IAAA,GAC5BgC,SAAS;IACbM,aAAa,EAAEL,kBAAmB;IAClCH,gCAAgC,EAAEK,wBAAyB;IAC3DZ,yBAAyB,EAAEA,yBAA0B;IACrDF,cAAc,EAAEA,cAAe;IAC/BkB,UAAU,EAAE5B,KAAM;IAClBG,QAAQ,EAAEA,QAAS;IAAA,GACfsB,uBAAuB;IAAAR,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_A11ySequenceOrderContext","_A11yIndexNativeComponent","_A11yIndex","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","React","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","useRef","useImperativeHandle","native","current","Proxy","_target","prop","Commands","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","A11ySequenceOrderContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","A11yOrderTypeEnum","importantForAccessibility","A11yIndex","exports","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","A11yContainerTypeEnum","shouldGroupChildrenValue","screenReaderNativeProps","jsx","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;;;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F,CAAC,CAAC;EAEF,MAAM;IAAE2B,QAAQ;IAAEO,cAAc;IAAEE;EAA0B,CAAC,GAC3Db,aAAa,CAACC,KAAK,EAAEC,SAAS,EAAEC,6BAA6B,CAAC;EAEhE,MAAMb,QAAQ,GAAGF,WAAW,CAACC,GAAG,CAAC;EAEjC,oBACE,IAAArC,WAAA,CAAA2E,GAAA,EAAC7E,yBAAA,CAAAa,OAAa;IACZ0B,GAAG,EAAEC,QAA2B;IAAA,GAC5BgC,SAAS;IACbM,aAAa,EAAEL,kBAAmB;IAClCH,gCAAgC,EAAEK,wBAAyB;IAC3DZ,yBAAyB,EAAEA,yBAA0B;IACrDF,cAAc,EAAEA,cAAe;IAC/BkB,UAAU,EAAE5B,KAAM;IAClBG,QAAQ,EAAEA,QAAS;IAAA,GACfsB,uBAAuB;IAAAR,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yCardNativeComponentProps extends ViewProps {}
6
4
 
@@ -1,13 +1,13 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { ViewProps } from 'react-native';
2
+ import {
3
+ codegenNativeComponent,
4
+ codegenNativeCommands,
5
+ type ViewProps,
6
+ } from 'react-native';
3
7
  import type {
4
8
  DirectEventHandler,
5
9
  Int32,
6
10
  } from 'react-native/Libraries/Types/CodegenTypes';
7
- // eslint-disable-next-line @react-native/no-deep-imports
8
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
- // eslint-disable-next-line @react-native/no-deep-imports
10
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
11
11
 
12
12
  export type ScreenReaderFocusChange = Readonly<{
13
13
  isFocused: boolean;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yLockNativeComponentProps extends ViewProps {
7
5
  componentType: Int32;
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yOrderNativeComponentProps extends ViewProps {
6
4
  orderKey: string;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yPaneTitleProps extends ViewProps {
7
5
  title?: string;
@@ -40,7 +40,6 @@ function useFocusRef(ref) {
40
40
  if (prop === 'focus') {
41
41
  return () => {
42
42
  if (localRef.current) {
43
- // @ts-expect-error Commands.focus type is too generic in codegen
44
43
  Commands.focus(localRef.current);
45
44
  }
46
45
  };
@@ -1 +1 @@
1
- {"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","A11yContainerTypeEnum","jsx","_jsx","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","native","current","Proxy","get","_target","prop","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","importantForAccessibility","A11yIndex","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","shouldGroupChildrenValue","screenReaderNativeProps","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE1D,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AACnD,SAEEC,iBAAiB,EAGjBC,qBAAqB,QAChB,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3B,SAASC,oBAAoBA,CAAC;EAC5BC,qBAAqB;EACrBC,gCAAgC;EAChCC,4BAA4B;EAC5BC,4BAA4B;EAC5BC;AACqB,CAAC,EAAE;EACxB,MAAMC,UAAU,GAAGC,OAAO,CACxBH,4BAA4B,IAC1BD,4BAA4B,IAC5BD,gCACJ,CAAC;EAED,MAAMM,yBAAyB,GAAGlB,KAAK,CAACmB,WAAW,CAChDC,KAA8C,IAAK;IAClD,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK,CAACE,WAAW;IACvCV,gCAAgC,GAAGS,SAAS,CAAC;IAC7C,IAAIA,SAAS,EAAE;MACbR,4BAA4B,GAAG,CAAC;IAClC,CAAC,MAAM;MACLC,4BAA4B,GAAG,CAAC;IAClC;EACF,CAAC,EACD,CACEF,gCAAgC,EAChCE,4BAA4B,EAC5BD,4BAA4B,CAEhC,CAAC;EAED,OAAO;IACLF,qBAAqB;IACrBO,yBAAyB,EAAEF,UAAU,GACjCE,yBAAyB,GACzBK,SAAS;IACbC,6BAA6B,EAAEP,OAAO,CACpCF,oCACF,CAAC;IACDA;EACF,CAAC;AACH;AAEA,SAASU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,CACE;EACEC,QAAQ;EACRd,KAAK;EACLC,SAAS;EACTc,eAAe;EACfC,gCAAgC;EAChC,GAAGC;AACL,CAAC,EACD3B,GAAG,KACA;EACH,MAAM;IACJf,qBAAqB;IACrBC,gCAAgC;IAChCC,4BAA4B;IAC5BC,4BAA4B;IAC5BC,oCAAoC;IACpC+B,yBAAyB,EAAER,6BAA6B;IACxD,GAAGgB;EACL,CAAC,GAAGD,KAAK;EAET,MAAME,kBAAkB,GAAGJ,eAAe,GACtC5C,qBAAqB,CAAC4C,eAAe,CAAC,GACtC5B,SAAS;EAEb,MAAMiC,wBAAwB,GAC5BJ,gCAAgC,KAAK7B,SAAS,GAC1C,CAAC,CAAC,GACF6B,gCAAgC,GAChC,CAAC,GACD,CAAC;EAEP,MAAMK,uBAAuB,GAAG/C,oBAAoB,CAAC;IACnDC,qBAAqB;IACrBC,gCAAgC;IAChCC,4BAA4B;IAC5BC,4BAA4B;IAC5BC;EACF,CAAC,CAAC;EAEF,MAAM;IAAEwB,QAAQ;IAAEM,cAAc;IAAEC;EAA0B,CAAC,GAC3DX,aAAa,CAACC,KAAK,EAAEC,SAAS,EAAEC,6BAA6B,CAAC;EAEhE,MAAMX,QAAQ,GAAGF,WAAW,CAACC,GAAG,CAAC;EAEjC,oBACEjB,IAAA,CAACL,aAAa;IACZsB,GAAG,EAAEC,QAA2B;IAAA,GAC5B2B,SAAS;IACbI,aAAa,EAAEH,kBAAmB;IAClCH,gCAAgC,EAAEI,wBAAyB;IAC3DV,yBAAyB,EAAEA,yBAA0B;IACrDD,cAAc,EAAEA,cAAe;IAC/Bc,UAAU,EAAEvB,KAAM;IAClBG,QAAQ,EAAEA,QAAS;IAAA,GACfkB,uBAAuB;IAAAP,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useImperativeHandle","useRef","A11ySequenceOrderContext","A11yIndexView","Commands","A11yOrderTypeEnum","A11yContainerTypeEnum","jsx","_jsx","useScreenReaderProps","onScreenReaderFocused","onScreenReaderSubViewFocusChange","onScreenReaderSubViewFocused","onScreenReaderSubViewBlurred","onScreenReaderDescendantFocusChanged","hasHandler","Boolean","onScreenReaderFocusChange","useCallback","event","isFocused","nativeEvent","undefined","descendantFocusChangedEnabled","useFocusRef","ref","localRef","native","current","Proxy","get","_target","prop","focus","useOrderProps","index","orderType","importantForAccessibilityProp","orderKey","useContext","hasOrderInfo","Error","resolvedOrderType","importantForAccessibilityFallback","orderFocusType","importantForAccessibility","A11yIndex","memo","forwardRef","children","a11yUIContainer","shouldGroupAccessibilityChildren","props","viewProps","containerTypeValue","shouldGroupChildrenValue","screenReaderNativeProps","containerType","orderIndex"],"sourceRoot":"../../../../src","sources":["components/A11yIndex/A11yIndex.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AAE1D,SAASC,wBAAwB,QAAQ,wCAAwC;AACjF,OAAOC,aAAa,IAClBC,QAAQ,QACH,4CAA4C;AACnD,SAEEC,iBAAiB,EAGjBC,qBAAqB,QAChB,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3B,SAASC,oBAAoBA,CAAC;EAC5BC,qBAAqB;EACrBC,gCAAgC;EAChCC,4BAA4B;EAC5BC,4BAA4B;EAC5BC;AACqB,CAAC,EAAE;EACxB,MAAMC,UAAU,GAAGC,OAAO,CACxBH,4BAA4B,IAC1BD,4BAA4B,IAC5BD,gCACJ,CAAC;EAED,MAAMM,yBAAyB,GAAGlB,KAAK,CAACmB,WAAW,CAChDC,KAA8C,IAAK;IAClD,MAAM;MAAEC;IAAU,CAAC,GAAGD,KAAK,CAACE,WAAW;IACvCV,gCAAgC,GAAGS,SAAS,CAAC;IAC7C,IAAIA,SAAS,EAAE;MACbR,4BAA4B,GAAG,CAAC;IAClC,CAAC,MAAM;MACLC,4BAA4B,GAAG,CAAC;IAClC;EACF,CAAC,EACD,CACEF,gCAAgC,EA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AAS;IAAA,GACfkB,uBAAuB;IAAAP,QAAA,EAE1BA;EAAQ,CACI,CAAC;AAEpB,CACF,CACF,CAAC","ignoreList":[]}
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yCardNativeComponentProps extends ViewProps {}
6
4
 
@@ -1,13 +1,13 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { ViewProps } from 'react-native';
2
+ import {
3
+ codegenNativeComponent,
4
+ codegenNativeCommands,
5
+ type ViewProps,
6
+ } from 'react-native';
3
7
  import type {
4
8
  DirectEventHandler,
5
9
  Int32,
6
10
  } from 'react-native/Libraries/Types/CodegenTypes';
7
- // eslint-disable-next-line @react-native/no-deep-imports
8
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
- // eslint-disable-next-line @react-native/no-deep-imports
10
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
11
11
 
12
12
  export type ScreenReaderFocusChange = Readonly<{
13
13
  isFocused: boolean;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yLockNativeComponentProps extends ViewProps {
7
5
  componentType: Int32;
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yOrderNativeComponentProps extends ViewProps {
6
4
  orderKey: string;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yPaneTitleProps extends ViewProps {
7
5
  title?: string;
@@ -1,37 +1,13 @@
1
1
  import type { ViewStyle, StyleProp, ViewProps, PressableProps } from 'react-native';
2
- /** Accessibility props forwarded to the focusable overlay (iOS) or the Pressable (Android). */
3
2
  export type A11yCardAccessibilityProps = ViewProps;
4
3
  export interface A11yCardProps {
5
- /**
6
- * Props applied to the container View wrapping the card.
7
- * Use this for layout-level concerns: position, margins, flex, etc.
8
- */
9
4
  containerProps?: ViewProps;
10
- /**
11
- * Style for the card surface (the inner Pressable).
12
- * Use this for visual appearance: background color, border radius, padding, etc.
13
- */
14
5
  style?: StyleProp<ViewStyle>;
15
- /**
16
- * Used to locate this view in end-to-end tests.
17
- */
18
6
  testID?: string;
19
- /**
20
- * Called when the user taps the card.
21
- */
7
+ disabled?: boolean;
22
8
  onPress?: () => void;
23
- /**
24
- * View/Accessibility props for the card action — `accessibilityLabel`, `accessibilityHint`,
25
- * `accessibilityRole`, `accessibilityState`, etc.
26
- *
27
- * On iOS these are forwarded to a full-cover overlay that VoiceOver focuses.
28
- * On Android they are applied directly to the Pressable.
29
- */
9
+ onLongPress?: () => void;
30
10
  accessibility?: A11yCardAccessibilityProps;
31
- /**
32
- * Props passed directly to the underlying `Pressable`.
33
- * Use this for `hitSlop`, `android_ripple`, `onLongPress`, etc.
34
- */
35
11
  pressableProps?: PressableProps;
36
12
  children?: React.ReactNode;
37
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"A11yCard.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB,+FAA+F;AAC/F,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAE3C;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
1
+ {"version":3,"file":"A11yCard.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yCard/A11yCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,cAAc,EACf,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEnD,MAAM,WAAW,aAAa;IAG5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAG3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAIrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAOzB,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAI3C,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AAyG3B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAgErB,CAAC"}
1
+ {"version":3,"file":"A11yIndex.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,mBAAmB,CAAC;AA0G3B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAgErB,CAAC"}
@@ -43,63 +43,41 @@ export type A11yIndexProps = ViewProps & {
43
43
  */
44
44
  index?: number;
45
45
  /**
46
- * Controls which element VoiceOver / TalkBack actually focuses for this slot.
47
- *
48
- * - `'default'` — the `A11y.Index` view itself receives focus
49
- * - `'child'` — the first accessible descendant receives focus (useful when
50
- * the index wrapper has no visual presence of its own)
51
- * - `'subview'` — focuses the first direct child view rather than the first accessible descendant
52
- *
53
- * Defaults to `'default'`.
46
+ * Controls which element VoiceOver / TalkBack actually focuses.
47
+ * Defaults to `'default'` (the index view itself).
54
48
  */
55
49
  orderType?: A11yOrderType;
56
50
  /**
57
- * iOS only — sets `UIAccessibilityContainerType` on the wrapping view.
58
- * Helps VoiceOver understand the semantic role of the container:
59
- * `'list'`, `'table'`, `'landmark'`, etc.
60
- *
61
- * @platform ios
51
+ * iOS only — sets `UIAccessibilityContainerType`.
52
+ * Helps VoiceOver understand the semantic container type (list, table, landmark…).
62
53
  */
63
54
  a11yUIContainer?: A11yUIContainerType;
64
55
  /**
65
- * iOS only — maps to `shouldGroupAccessibilityChildren` on the native view.
56
+ * iOS only — controls the wrapping view's `shouldGroupAccessibilityChildren`.
66
57
  * Determines whether VoiceOver treats descendants as one grouped unit
67
58
  * or navigates them individually.
68
59
  *
69
- * - `true` — VoiceOver focuses the wrapper as a single element and builds
70
- * a combined label from its children.
71
- * - `false` — descendants stay individually focusable even when iOS would
72
- * otherwise collapse them.
73
- * - omitted defers to the platform default.
74
- *
75
- * @platform ios
60
+ * - `true` group descendants; VoiceOver focuses the wrapper as a single
61
+ * element with a combined label built from its children.
62
+ * - `false` force descendants to remain individually focusable even when
63
+ * iOS would otherwise group them.
64
+ * - omitted defer to the wrapping view's default behavior.
76
65
  */
77
66
  shouldGroupAccessibilityChildren?: boolean;
78
- /**
79
- * When `true`, requests screen reader focus on this element immediately after mount.
80
- */
67
+ /** When `true`, requests screen reader focus on this element immediately after mount. */
81
68
  autoFocus?: boolean;
82
- /**
83
- * Called when the screen reader focuses this element directly (not a descendant).
84
- */
69
+ /** Called when the screen reader focuses this element directly. */
85
70
  onScreenReaderFocused?: () => void;
86
71
  /**
87
- * Called when screen reader focus enters or leaves any descendant.
88
- * Receives `true` on enter and `false` on leave.
72
+ * Called whenever screen reader focus enters or leaves any descendant.
73
+ * `isFocused` is `true` on enter, `false` on leave.
89
74
  */
90
75
  onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
91
- /**
92
- * Called when screen reader focus enters any descendant.
93
- */
76
+ /** Called when screen reader focus enters any descendant. */
94
77
  onScreenReaderSubViewFocused?: () => void;
95
- /**
96
- * Called when screen reader focus leaves any descendant.
97
- */
78
+ /** Called when screen reader focus leaves any descendant. */
98
79
  onScreenReaderSubViewBlurred?: () => void;
99
- /**
100
- * Called with the full native event when screen reader focus changes on any descendant.
101
- * Use this when you need the `nativeId` of the focused element.
102
- */
80
+ /** Called with the native event when screen reader focus changes on any descendant. */
103
81
  onScreenReaderDescendantFocusChanged?: (e: ScreenReaderDescendantFocusChangedEvent) => void;
104
82
  };
105
83
  //# sourceMappingURL=A11yIndex.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndex.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yIndex/A11yIndex.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAErG,0GAA0G;AAC1G,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG;IAC3E,iDAAiD;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,wEAAwE;AACxE,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE3D,kFAAkF;AAClF,MAAM,MAAM,uCAAuC,GACjD,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE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GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE3D,kFAAkF;AAClF,MAAM,MAAM,uCAAuC,GACjD,oBAAoB,CAAC,kCAAkC,CAAC,CAAC;AAE3D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAC;IAEtC;;;;;;;;;;OAUG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAE3C,yFAAyF;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,mEAAmE;IACnE,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IAEnC;;;OAGG;IACH,gCAAgC,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAEhE,6DAA6D;IAC7D,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1C,6DAA6D;IAC7D,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1C,uFAAuF;IACvF,oCAAoC,CAAC,EAAE,CACrC,CAAC,EAAE,uCAAuC,KACvC,IAAI,CAAC;CACX,CAAC"}
@@ -5,17 +5,13 @@ import type { ViewProps } from 'react-native';
5
5
  */
6
6
  export type A11yFocusTrapProps = ViewProps & {
7
7
  /**
8
- * When `true`, the focus trap is inactive and the screen reader can navigate
9
- * freely outside this container.
10
- *
11
- * Defaults to `false`.
8
+ * When `true`, the focus trap is inactive the screen reader can navigate freely
9
+ * outside this container. Defaults to `false`.
12
10
  */
13
11
  lockDisabled?: boolean;
14
12
  /**
15
- * When `true`, focus is moved inside the trap immediately on mount rather than
16
- * waiting for the next accessibility navigation gesture.
17
- * Use this for programmatically-opened modals and sheets.
18
- *
13
+ * When `true`, focus is trapped immediately on mount rather than waiting for
14
+ * the next accessibility navigation gesture. Use for programmatically-opened modals.
19
15
  * Defaults to `false`.
20
16
  */
21
17
  forceLock?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"A11yLock.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yLock/A11yLock.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE5C,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"A11yLock.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yLock/A11yLock.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE5C,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -12,35 +12,26 @@ export type A11yPaneType = 'activity' | 'pane' | 'announce';
12
12
  * VoiceOver / TalkBack and optionally restores focus when the view unmounts.
13
13
  */
14
14
  export type A11yPaneTitleProps = React.PropsWithChildren<{
15
- /**
16
- * The title announced to the screen reader when this component mounts.
17
- */
15
+ /** The title announced to the screen reader when this component mounts. */
18
16
  title?: string;
19
- /**
20
- * A message announced to the screen reader when this component unmounts.
21
- * Use to signal the end of a flow, e.g. `"Modal closed"` or `"Drawer closed"`.
22
- */
17
+ /** A message announced when this component unmounts, e.g. `"Drawer closed"`. */
23
18
  detachMessage?: string;
24
19
  /**
25
- * Controls the native announcement mechanism. Defaults to `'pane'`.
20
+ * Controls the native announcement type. Defaults to `'pane'`.
26
21
  *
27
- * - `'pane'` — layout-changed notification with a title (panels, sheets)
28
- * - `'activity'` — screen-change notification (full-screen navigation)
29
- * - `'announce'` — plain announcement with no focus shift (status updates)
22
+ * - `'pane'` — layout-changed notification with a title
23
+ * - `'activity'` — screen-change notification for full-screen transitions
24
+ * - `'announce'` — plain announcement, no focus shift
30
25
  */
31
26
  type?: A11yPaneType;
32
27
  /**
33
- * When `true`, VoiceOver / TalkBack restores focus to the previously focused
34
- * element when this component unmounts.
35
- *
36
- * Defaults to `true`.
28
+ * When `true` (default), VoiceOver / TalkBack restores focus to the previously
29
+ * focused element when this component unmounts.
37
30
  */
38
31
  withFocusRestore?: boolean;
39
32
  /**
40
33
  * When `false`, the component renders nothing and posts no announcement.
41
- * Use this to conditionally suppress the view without unmounting its subtree.
42
- *
43
- * Defaults to `true`.
34
+ * Use to conditionally suppress the view without unmounting the subtree.
44
35
  */
45
36
  displayed?: boolean;
46
37
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"A11yPaneTitle.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/A11yPaneTitle/A11yPaneTitle.types.ts"],"names":[],"mappings":"AAAA,OA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-1,8 +1,6 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { type ViewProps } from 'react-native';
2
2
  export interface A11yCardNativeComponentProps extends ViewProps {
3
3
  }
4
- declare const _default: (props: Omit<A11yCardNativeComponentProps, "ref"> & {
5
- ref?: React.Ref<import("react-native").HostInstance>;
6
- }) => React.ReactNode;
4
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yCardNativeComponentProps>;
7
5
  export default _default;
8
6
  //# sourceMappingURL=A11yCardNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,4BAA6B,SAAQ,SAAS;CAAG;;;;AAElE,wBAEE"}
1
+ {"version":3,"file":"A11yCardNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yCardNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,4BAA6B,SAAQ,SAAS;CAAG;;AAElE,wBAEE"}
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { ViewProps } from 'react-native';
2
+ import { type ViewProps } from 'react-native';
3
3
  import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
4
4
  export type ScreenReaderFocusChange = Readonly<{
5
5
  isFocused: boolean;
@@ -24,8 +24,6 @@ export interface NativeCommands {
24
24
  focus: (viewRef: React.ElementRef<ComponentType>) => void;
25
25
  }
26
26
  export declare const Commands: NativeCommands;
27
- declare const _default: (props: Omit<A11yIndexNativeComponentProps, "ref"> & {
28
- ref?: React.Ref<import("react-native").HostInstance>;
29
- }) => React.ReactNode;
27
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yIndexNativeComponentProps>;
30
28
  export default _default;
31
29
  //# sourceMappingURL=A11yIndexNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yIndexNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yIndexNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAMnD,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,gCAAgC,CAAC,EAAE,KAAK,CAAC;IAEzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC,qBAAqB,CAAC,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAC/C,oCAAoC,CAAC,EAAE,kBAAkB,CAAC,kCAAkC,CAAC,CAAC;IAC9F,yBAAyB,CAAC,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAExE,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED,MAAM,WAAW,cAAc;IAE7B,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;C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AEH,wBAEE"}
@@ -1,4 +1,4 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
3
  export interface A11yLockNativeComponentProps extends ViewProps {
4
4
  componentType: Int32;
@@ -6,8 +6,6 @@ export interface A11yLockNativeComponentProps extends ViewProps {
6
6
  lockDisabled?: boolean;
7
7
  forceLock?: boolean;
8
8
  }
9
- declare const _default: (props: Omit<A11yLockNativeComponentProps, "ref"> & {
10
- ref?: React.Ref<import("react-native").HostInstance>;
11
- }) => React.ReactNode;
9
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yLockNativeComponentProps>;
12
10
  export default _default;
13
11
  //# sourceMappingURL=A11yLockNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;;;AAED,wBAAgF"}
1
+ {"version":3,"file":"A11yLockNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yLockNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAEvE,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;AAED,wBAAgF"}
@@ -1,9 +1,7 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { type ViewProps } from 'react-native';
2
2
  export interface A11yOrderNativeComponentProps extends ViewProps {
3
3
  orderKey: string;
4
4
  }
5
- declare const _default: (props: Omit<A11yOrderNativeComponentProps, "ref"> & {
6
- ref?: React.Ref<import("react-native").HostInstance>;
7
- }) => React.ReactNode;
5
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yOrderNativeComponentProps>;
8
6
  export default _default;
9
7
  //# sourceMappingURL=A11yOrderNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;;;;AAED,wBAEE"}
1
+ {"version":3,"file":"A11yOrderNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yOrderNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D,QAAQ,EAAE,MAAM,CAAC;CAClB;;AAED,wBAEE"}
@@ -1,4 +1,4 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
3
  export interface A11yPaneTitleProps extends ViewProps {
4
4
  title?: string;
@@ -6,8 +6,6 @@ export interface A11yPaneTitleProps extends ViewProps {
6
6
  type: Int32;
7
7
  withFocusRestore?: boolean;
8
8
  }
9
- declare const _default: (props: Omit<A11yPaneTitleProps, "ref"> & {
10
- ref?: React.Ref<import("react-native").HostInstance>;
11
- }) => React.ReactNode;
9
+ declare const _default: import("react-native/types_generated/Libraries/Utilities/codegenNativeComponent").NativeComponentType<A11yPaneTitleProps>;
12
10
  export default _default;
13
11
  //# sourceMappingURL=A11yPaneTitleNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;;;;AAED,wBAA2E"}
1
+ {"version":3,"file":"A11yPaneTitleNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpecs/A11yPaneTitleNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAEvE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK,CAAC;IACZ,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;;AAED,wBAA2E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-a11y-order",
3
- "version": "0.11.0-rc",
3
+ "version": "1.0.0-alpha.0",
4
4
  "description": "ReactNative library for managing screen reader focus ordering",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -25,12 +25,10 @@
25
25
  "!**/__fixtures__",
26
26
  "!**/__mocks__",
27
27
  "!**/.*",
28
- "!**/CLAUDE.md",
29
- "!**/docs"
28
+ "!**/CLAUDE.md"
30
29
  ],
31
30
  "scripts": {
32
31
  "example": "yarn workspace a11y-order-example",
33
- "example-legacy": "yarn workspace A11yOrderExample",
34
32
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
35
33
  "prepare": "bob build",
36
34
  "typecheck": "tsc",
@@ -66,11 +64,11 @@
66
64
  "@eslint/compat": "^1.3.2",
67
65
  "@eslint/eslintrc": "^3.3.1",
68
66
  "@eslint/js": "^9.35.0",
69
- "@react-native/babel-preset": "0.76.0",
70
- "@react-native/eslint-config": "0.76.0",
67
+ "@react-native/babel-preset": "0.83.0",
68
+ "@react-native/eslint-config": "0.83.0",
71
69
  "@release-it/conventional-changelog": "^10.0.1",
72
70
  "@types/jest": "^29.5.14",
73
- "@types/react": "^18.2.0",
71
+ "@types/react": "^19.2.0",
74
72
  "commitlint": "^19.8.1",
75
73
  "del-cli": "^6.0.0",
76
74
  "eslint": "^9.35.0",
@@ -79,8 +77,8 @@
79
77
  "jest": "^29.7.0",
80
78
  "lefthook": "^2.0.3",
81
79
  "prettier": "^2.8.8",
82
- "react": "18.2.0",
83
- "react-native": "0.76.0",
80
+ "react": "19.2.0",
81
+ "react-native": "0.83.0",
84
82
  "react-native-builder-bob": "^0.40.18",
85
83
  "release-it": "^19.0.4",
86
84
  "turbo": "^2.5.6",
@@ -91,8 +89,7 @@
91
89
  "react-native": "*"
92
90
  },
93
91
  "workspaces": [
94
- "example",
95
- "A11yOrderExample"
92
+ "example"
96
93
  ],
97
94
  "packageManager": "yarn@4.11.0",
98
95
  "react-native-builder-bob": {
@@ -5,45 +5,34 @@ import type {
5
5
  PressableProps,
6
6
  } from 'react-native';
7
7
 
8
- /** Accessibility props forwarded to the focusable overlay (iOS) or the Pressable (Android). */
8
+ // All screen-reader-facing props, typed directly from ViewProps so they
9
+ // stay in sync with RN without a separate custom interface.
9
10
  export type A11yCardAccessibilityProps = ViewProps;
10
11
 
11
12
  export interface A11yCardProps {
12
- /**
13
- * Props applied to the container View wrapping the card.
14
- * Use this for layout-level concerns: position, margins, flex, etc.
15
- */
13
+ // Props for the outer container (<Card> on iOS, <View> on Android).
14
+ // Use for margins, flex, and layout positioning in the parent.
16
15
  containerProps?: ViewProps;
17
16
 
18
- /**
19
- * Style for the card surface (the inner Pressable).
20
- * Use this for visual appearance: background color, border radius, padding, etc.
21
- */
17
+ // Visual style of the inner Pressable (background, border, shadow, etc.).
22
18
  style?: StyleProp<ViewStyle>;
23
-
24
- /**
25
- * Used to locate this view in end-to-end tests.
26
- */
27
19
  testID?: string;
28
-
29
- /**
30
- * Called when the user taps the card.
31
- */
20
+ disabled?: boolean;
32
21
  onPress?: () => void;
33
-
34
- /**
35
- * View/Accessibility props for the card action — `accessibilityLabel`, `accessibilityHint`,
36
- * `accessibilityRole`, `accessibilityState`, etc.
37
- *
38
- * On iOS these are forwarded to a full-cover overlay that VoiceOver focuses.
39
- * On Android they are applied directly to the Pressable.
40
- */
22
+ // Note: onLongPress fires for sighted users. For VoiceOver users add a
23
+ // custom action via accessibility.accessibilityActions — VoiceOver activates
24
+ // via double-tap (onPress), not long-press.
25
+ onLongPress?: () => void;
26
+
27
+ // What the screen reader announces and interacts with.
28
+ // On iOS applied to the overlay (first in accessibilityElements).
29
+ // On Android applied to the Pressable directly.
30
+ // disabled auto-merges into accessibility.accessibilityState.disabled so
31
+ // you only need to set disabled once.
41
32
  accessibility?: A11yCardAccessibilityProps;
42
33
 
43
- /**
44
- * Props passed directly to the underlying `Pressable`.
45
- * Use this for `hitSlop`, `android_ripple`, `onLongPress`, etc.
46
- */
34
+ // Escape hatch for Pressable props not covered above (hitSlop, android_ripple, etc.).
35
+ // Conflicting keys are stripped to prevent accidental overrides.
47
36
  pressableProps?: PressableProps;
48
37
 
49
38
  children?: React.ReactNode;
@@ -74,8 +74,9 @@ function useFocusRef(ref: React.ForwardedRef<IndexCommands>) {
74
74
  if (prop === 'focus') {
75
75
  return () => {
76
76
  if (localRef.current) {
77
- // @ts-expect-error Commands.focus type is too generic in codegen
78
- Commands.focus(localRef.current);
77
+ Commands.focus(
78
+ localRef.current as unknown as React.Component<{}, any, any>
79
+ );
79
80
  }
80
81
  };
81
82
  }
@@ -53,71 +53,49 @@ export type A11yIndexProps = ViewProps & {
53
53
  index?: number;
54
54
 
55
55
  /**
56
- * Controls which element VoiceOver / TalkBack actually focuses for this slot.
57
- *
58
- * - `'default'` — the `A11y.Index` view itself receives focus
59
- * - `'child'` — the first accessible descendant receives focus (useful when
60
- * the index wrapper has no visual presence of its own)
61
- * - `'subview'` — focuses the first direct child view rather than the first accessible descendant
62
- *
63
- * Defaults to `'default'`.
56
+ * Controls which element VoiceOver / TalkBack actually focuses.
57
+ * Defaults to `'default'` (the index view itself).
64
58
  */
65
59
  orderType?: A11yOrderType;
66
60
 
67
61
  /**
68
- * iOS only — sets `UIAccessibilityContainerType` on the wrapping view.
69
- * Helps VoiceOver understand the semantic role of the container:
70
- * `'list'`, `'table'`, `'landmark'`, etc.
71
- *
72
- * @platform ios
62
+ * iOS only — sets `UIAccessibilityContainerType`.
63
+ * Helps VoiceOver understand the semantic container type (list, table, landmark…).
73
64
  */
74
65
  a11yUIContainer?: A11yUIContainerType;
75
66
 
76
67
  /**
77
- * iOS only — maps to `shouldGroupAccessibilityChildren` on the native view.
68
+ * iOS only — controls the wrapping view's `shouldGroupAccessibilityChildren`.
78
69
  * Determines whether VoiceOver treats descendants as one grouped unit
79
70
  * or navigates them individually.
80
71
  *
81
- * - `true` — VoiceOver focuses the wrapper as a single element and builds
82
- * a combined label from its children.
83
- * - `false` — descendants stay individually focusable even when iOS would
84
- * otherwise collapse them.
85
- * - omitted defers to the platform default.
86
- *
87
- * @platform ios
72
+ * - `true` group descendants; VoiceOver focuses the wrapper as a single
73
+ * element with a combined label built from its children.
74
+ * - `false` force descendants to remain individually focusable even when
75
+ * iOS would otherwise group them.
76
+ * - omitted defer to the wrapping view's default behavior.
88
77
  */
89
78
  shouldGroupAccessibilityChildren?: boolean;
90
79
 
91
- /**
92
- * When `true`, requests screen reader focus on this element immediately after mount.
93
- */
80
+ /** When `true`, requests screen reader focus on this element immediately after mount. */
94
81
  autoFocus?: boolean;
95
82
 
96
- /**
97
- * Called when the screen reader focuses this element directly (not a descendant).
98
- */
83
+ /** Called when the screen reader focuses this element directly. */
99
84
  onScreenReaderFocused?: () => void;
100
85
 
101
86
  /**
102
- * Called when screen reader focus enters or leaves any descendant.
103
- * Receives `true` on enter and `false` on leave.
87
+ * Called whenever screen reader focus enters or leaves any descendant.
88
+ * `isFocused` is `true` on enter, `false` on leave.
104
89
  */
105
90
  onScreenReaderSubViewFocusChange?: (isFocused: boolean) => void;
106
91
 
107
- /**
108
- * Called when screen reader focus enters any descendant.
109
- */
92
+ /** Called when screen reader focus enters any descendant. */
110
93
  onScreenReaderSubViewFocused?: () => void;
111
94
 
112
- /**
113
- * Called when screen reader focus leaves any descendant.
114
- */
95
+ /** Called when screen reader focus leaves any descendant. */
115
96
  onScreenReaderSubViewBlurred?: () => void;
116
97
 
117
- /**
118
- * Called with the full native event when screen reader focus changes on any descendant.
119
- * Use this when you need the `nativeId` of the focused element.
120
- */
98
+ /** Called with the native event when screen reader focus changes on any descendant. */
121
99
  onScreenReaderDescendantFocusChanged?: (
122
100
  e: ScreenReaderDescendantFocusChangedEvent
123
101
  ) => void;
@@ -6,18 +6,14 @@ import type { ViewProps } from 'react-native';
6
6
  */
7
7
  export type A11yFocusTrapProps = ViewProps & {
8
8
  /**
9
- * When `true`, the focus trap is inactive and the screen reader can navigate
10
- * freely outside this container.
11
- *
12
- * Defaults to `false`.
9
+ * When `true`, the focus trap is inactive the screen reader can navigate freely
10
+ * outside this container. Defaults to `false`.
13
11
  */
14
12
  lockDisabled?: boolean;
15
13
 
16
14
  /**
17
- * When `true`, focus is moved inside the trap immediately on mount rather than
18
- * waiting for the next accessibility navigation gesture.
19
- * Use this for programmatically-opened modals and sheets.
20
- *
15
+ * When `true`, focus is trapped immediately on mount rather than waiting for
16
+ * the next accessibility navigation gesture. Use for programmatically-opened modals.
21
17
  * Defaults to `false`.
22
18
  */
23
19
  forceLock?: boolean;
@@ -14,39 +14,30 @@ export type A11yPaneType = 'activity' | 'pane' | 'announce';
14
14
  * VoiceOver / TalkBack and optionally restores focus when the view unmounts.
15
15
  */
16
16
  export type A11yPaneTitleProps = React.PropsWithChildren<{
17
- /**
18
- * The title announced to the screen reader when this component mounts.
19
- */
17
+ /** The title announced to the screen reader when this component mounts. */
20
18
  title?: string;
21
19
 
22
- /**
23
- * A message announced to the screen reader when this component unmounts.
24
- * Use to signal the end of a flow, e.g. `"Modal closed"` or `"Drawer closed"`.
25
- */
20
+ /** A message announced when this component unmounts, e.g. `"Drawer closed"`. */
26
21
  detachMessage?: string;
27
22
 
28
23
  /**
29
- * Controls the native announcement mechanism. Defaults to `'pane'`.
24
+ * Controls the native announcement type. Defaults to `'pane'`.
30
25
  *
31
- * - `'pane'` — layout-changed notification with a title (panels, sheets)
32
- * - `'activity'` — screen-change notification (full-screen navigation)
33
- * - `'announce'` — plain announcement with no focus shift (status updates)
26
+ * - `'pane'` — layout-changed notification with a title
27
+ * - `'activity'` — screen-change notification for full-screen transitions
28
+ * - `'announce'` — plain announcement, no focus shift
34
29
  */
35
30
  type?: A11yPaneType;
36
31
 
37
32
  /**
38
- * When `true`, VoiceOver / TalkBack restores focus to the previously focused
39
- * element when this component unmounts.
40
- *
41
- * Defaults to `true`.
33
+ * When `true` (default), VoiceOver / TalkBack restores focus to the previously
34
+ * focused element when this component unmounts.
42
35
  */
43
36
  withFocusRestore?: boolean;
44
37
 
45
38
  /**
46
39
  * When `false`, the component renders nothing and posts no announcement.
47
- * Use this to conditionally suppress the view without unmounting its subtree.
48
- *
49
- * Defaults to `true`.
40
+ * Use to conditionally suppress the view without unmounting the subtree.
50
41
  */
51
42
  displayed?: boolean;
52
43
  }>;
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yCardNativeComponentProps extends ViewProps {}
6
4
 
@@ -1,13 +1,13 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { ViewProps } from 'react-native';
2
+ import {
3
+ codegenNativeComponent,
4
+ codegenNativeCommands,
5
+ type ViewProps,
6
+ } from 'react-native';
3
7
  import type {
4
8
  DirectEventHandler,
5
9
  Int32,
6
10
  } from 'react-native/Libraries/Types/CodegenTypes';
7
- // eslint-disable-next-line @react-native/no-deep-imports
8
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
- // eslint-disable-next-line @react-native/no-deep-imports
10
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
11
11
 
12
12
  export type ScreenReaderFocusChange = Readonly<{
13
13
  isFocused: boolean;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yLockNativeComponentProps extends ViewProps {
7
5
  componentType: Int32;
@@ -1,6 +1,4 @@
1
- import type { ViewProps } from 'react-native';
2
- // eslint-disable-next-line @react-native/no-deep-imports
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
4
2
 
5
3
  export interface A11yOrderNativeComponentProps extends ViewProps {
6
4
  orderKey: string;
@@ -1,7 +1,5 @@
1
- import type { ViewProps } from 'react-native';
1
+ import { codegenNativeComponent, type ViewProps } from 'react-native';
2
2
  import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
3
 
6
4
  export interface A11yPaneTitleProps extends ViewProps {
7
5
  title?: string;