@amazon-devices/react-navigation__react-native-tab-view 2.0.1758683737

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 (116) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +649 -0
  3. package/SystemBundles/c5889b273a6efc2a3c30241851055c37630fbf3381df86d403967369775f0536.bundle +14497 -0
  4. package/SystemBundles/c5889b273a6efc2a3c30241851055c37630fbf3381df86d403967369775f0536.map +1 -0
  5. package/SystemModules/amzn__react-navigation__react-native-tab-view-2.modules.txt +41 -0
  6. package/SystemModules/amzn__react-navigation__react-native-tab-view-2.private.modules.txt +98 -0
  7. package/SystemModules/keplerscript-system-bundle-config.json +7 -0
  8. package/THIRD_PARTY_NOTICES.txt +24 -0
  9. package/kepler-compatibility.json +8 -0
  10. package/kepler-transformed-package-info.json +3 -0
  11. package/lib/commonjs/Pager.android.js +14 -0
  12. package/lib/commonjs/Pager.android.js.map +1 -0
  13. package/lib/commonjs/Pager.ios.js +14 -0
  14. package/lib/commonjs/Pager.ios.js.map +1 -0
  15. package/lib/commonjs/Pager.js +14 -0
  16. package/lib/commonjs/Pager.js.map +1 -0
  17. package/lib/commonjs/PagerViewAdapter.js +132 -0
  18. package/lib/commonjs/PagerViewAdapter.js.map +1 -0
  19. package/lib/commonjs/PanResponderAdapter.js +204 -0
  20. package/lib/commonjs/PanResponderAdapter.js.map +1 -0
  21. package/lib/commonjs/PlatformPressable.js +43 -0
  22. package/lib/commonjs/PlatformPressable.js.map +1 -0
  23. package/lib/commonjs/SceneMap.js +29 -0
  24. package/lib/commonjs/SceneMap.js.map +1 -0
  25. package/lib/commonjs/SceneView.js +78 -0
  26. package/lib/commonjs/SceneView.js.map +1 -0
  27. package/lib/commonjs/TabBar.js +405 -0
  28. package/lib/commonjs/TabBar.js.map +1 -0
  29. package/lib/commonjs/TabBarIndicator.js +110 -0
  30. package/lib/commonjs/TabBarIndicator.js.map +1 -0
  31. package/lib/commonjs/TabBarItem.js +227 -0
  32. package/lib/commonjs/TabBarItem.js.map +1 -0
  33. package/lib/commonjs/TabView.js +122 -0
  34. package/lib/commonjs/TabView.js.map +1 -0
  35. package/lib/commonjs/index.js +42 -0
  36. package/lib/commonjs/index.js.map +1 -0
  37. package/lib/commonjs/types.js +6 -0
  38. package/lib/commonjs/types.js.map +1 -0
  39. package/lib/commonjs/useAnimatedValue.js +18 -0
  40. package/lib/commonjs/useAnimatedValue.js.map +1 -0
  41. package/lib/module/Pager.android.js +2 -0
  42. package/lib/module/Pager.android.js.map +1 -0
  43. package/lib/module/Pager.ios.js +2 -0
  44. package/lib/module/Pager.ios.js.map +1 -0
  45. package/lib/module/Pager.js +2 -0
  46. package/lib/module/Pager.js.map +1 -0
  47. package/lib/module/PagerViewAdapter.js +123 -0
  48. package/lib/module/PagerViewAdapter.js.map +1 -0
  49. package/lib/module/PanResponderAdapter.js +195 -0
  50. package/lib/module/PanResponderAdapter.js.map +1 -0
  51. package/lib/module/PlatformPressable.js +35 -0
  52. package/lib/module/PlatformPressable.js.map +1 -0
  53. package/lib/module/SceneMap.js +21 -0
  54. package/lib/module/SceneMap.js.map +1 -0
  55. package/lib/module/SceneView.js +70 -0
  56. package/lib/module/SceneView.js.map +1 -0
  57. package/lib/module/TabBar.js +396 -0
  58. package/lib/module/TabBar.js.map +1 -0
  59. package/lib/module/TabBarIndicator.js +101 -0
  60. package/lib/module/TabBarIndicator.js.map +1 -0
  61. package/lib/module/TabBarItem.js +218 -0
  62. package/lib/module/TabBarItem.js.map +1 -0
  63. package/lib/module/TabView.js +113 -0
  64. package/lib/module/TabView.js.map +1 -0
  65. package/lib/module/index.js +6 -0
  66. package/lib/module/index.js.map +1 -0
  67. package/lib/module/types.js +2 -0
  68. package/lib/module/types.js.map +1 -0
  69. package/lib/module/useAnimatedValue.js +10 -0
  70. package/lib/module/useAnimatedValue.js.map +1 -0
  71. package/lib/typescript/src/Pager.android.d.ts +2 -0
  72. package/lib/typescript/src/Pager.android.d.ts.map +1 -0
  73. package/lib/typescript/src/Pager.d.ts +2 -0
  74. package/lib/typescript/src/Pager.d.ts.map +1 -0
  75. package/lib/typescript/src/Pager.ios.d.ts +2 -0
  76. package/lib/typescript/src/Pager.ios.d.ts.map +1 -0
  77. package/lib/typescript/src/PagerViewAdapter.d.ts +15 -0
  78. package/lib/typescript/src/PagerViewAdapter.d.ts.map +1 -0
  79. package/lib/typescript/src/PanResponderAdapter.d.ts +16 -0
  80. package/lib/typescript/src/PanResponderAdapter.d.ts.map +1 -0
  81. package/lib/typescript/src/PlatformPressable.d.ts +16 -0
  82. package/lib/typescript/src/PlatformPressable.d.ts.map +1 -0
  83. package/lib/typescript/src/SceneMap.d.ts +10 -0
  84. package/lib/typescript/src/SceneMap.d.ts.map +1 -0
  85. package/lib/typescript/src/SceneView.d.ts +16 -0
  86. package/lib/typescript/src/SceneView.d.ts.map +1 -0
  87. package/lib/typescript/src/TabBar.d.ts +44 -0
  88. package/lib/typescript/src/TabBar.d.ts.map +1 -0
  89. package/lib/typescript/src/TabBarIndicator.d.ts +13 -0
  90. package/lib/typescript/src/TabBarIndicator.d.ts.map +1 -0
  91. package/lib/typescript/src/TabBarItem.d.ts +37 -0
  92. package/lib/typescript/src/TabBarItem.d.ts.map +1 -0
  93. package/lib/typescript/src/TabView.d.ts +27 -0
  94. package/lib/typescript/src/TabView.d.ts.map +1 -0
  95. package/lib/typescript/src/index.d.ts +11 -0
  96. package/lib/typescript/src/index.d.ts.map +1 -0
  97. package/lib/typescript/src/types.d.ts +42 -0
  98. package/lib/typescript/src/types.d.ts.map +1 -0
  99. package/lib/typescript/src/useAnimatedValue.d.ts +3 -0
  100. package/lib/typescript/src/useAnimatedValue.d.ts.map +1 -0
  101. package/package.json +1 -0
  102. package/src/Pager.android.tsx +1 -0
  103. package/src/Pager.ios.tsx +1 -0
  104. package/src/Pager.tsx +1 -0
  105. package/src/PagerViewAdapter.tsx +180 -0
  106. package/src/PanResponderAdapter.tsx +340 -0
  107. package/src/PlatformPressable.tsx +42 -0
  108. package/src/SceneMap.tsx +30 -0
  109. package/src/SceneView.tsx +107 -0
  110. package/src/TabBar.tsx +639 -0
  111. package/src/TabBarIndicator.tsx +153 -0
  112. package/src/TabBarItem.tsx +319 -0
  113. package/src/TabView.tsx +155 -0
  114. package/src/index.tsx +10 -0
  115. package/src/types.tsx +59 -0
  116. package/src/useAnimatedValue.tsx +12 -0
@@ -0,0 +1,41 @@
1
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/Pager.js:caa8425aaed7a16f4b37
2
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/PanResponderAdapter.js:89c9028ecdc8b3c04122
3
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/useAnimatedValue.js:d7b447ba4a5d70364639
4
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/PagerViewAdapter.js:b05bf126cc4837f813e3
5
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/PlatformPressable.js:e84321a13452fc3c885f
6
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/SceneMap.js:64abd57b95fe70244a89
7
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/SceneView.js:d85e7296e815a2c50a57
8
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/TabBar.js:d35b32210a921b46a216
9
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/TabBarIndicator.js:2ab94c664f867372173b
10
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/TabBarItem.js:c502e34ac450943c3cff
11
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/TabView.js:da8983d9bc8536fcdd45
12
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/index.js:144c4ad770c0ffb95fef
13
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/commonjs/types.js:d001c711384dcd02f629
14
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/Pager.js:1f83157e0c499ad3e677
15
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/PanResponderAdapter.js:88b9efcc737587855c07
16
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/useAnimatedValue.js:66d5de0141e45beb3cb1
17
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/PagerViewAdapter.js:9f77913cdb2ea731dbe4
18
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/PlatformPressable.js:f29fafea729242cc01d8
19
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/SceneMap.js:1e9eeaee1c2868b2a771
20
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/SceneView.js:fa090edfae74ca576bca
21
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/TabBar.js:eda4cfbabec959936736
22
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/TabBarIndicator.js:25ee3d780b0801465a7f
23
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/TabBarItem.js:a5a03585e262331aad3c
24
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/TabView.js:e594ded48acd938b4767
25
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/index.js:3a1c8b2ff6a57ca09d53
26
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/lib/module/types.js:a2bd54d0ae9adcb55df4
27
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/Pager.android.tsx:f789783305eed0a69dff
28
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/PagerViewAdapter.tsx:d71c0b48f9e504b801fd
29
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/useAnimatedValue.tsx:354d9b3006fe8ef93b8a
30
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/Pager.ios.tsx:05bef0cec1e682391f3d
31
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/Pager.tsx:0d7c4d349308736fce14
32
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/PanResponderAdapter.tsx:58264f92ddf91bcf257b
33
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/PlatformPressable.tsx:83b9f09c0ba5b4694125
34
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/SceneMap.tsx:4aaf2ac656c9d37614ed
35
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/SceneView.tsx:74fe9607b0ddc496554b
36
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/TabBar.tsx:eeba5e8d874dbf4cae8f
37
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/TabBarIndicator.tsx:da5791d0c777915156d2
38
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/TabBarItem.tsx:5ebf7c139923c4ea17df
39
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/TabView.tsx:a70a22ed8277b130d4a4
40
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/index.tsx:d844605ddb1a60db1342
41
+ node_modules/@amzn/react-navigation__react-native-tab-view_2/src/types.tsx:ba5c661fd70c0365af06
@@ -0,0 +1,98 @@
1
+ node_modules/@react-native/js-polyfills_0.72.1/console.js:c081be8f6c0109dd350f
2
+ node_modules/@react-native/js-polyfills_0.72.1/error-guard.js:057b32c72f7f399723ba
3
+ node_modules/@react-native/js-polyfills_0.72.1/Object.es8.js:a9bf7d37774d7198840b
4
+ node_modules/@babel/runtime_7.26.0/helpers/interopRequireDefault.js:e13c8413f9a5de8e772f
5
+ node_modules/@babel/runtime_7.26.0/helpers/toConsumableArray.js:c8d9faa50529497e8550
6
+ node_modules/@babel/runtime_7.26.0/helpers/arrayWithoutHoles.js:fedf38594225d61ce364
7
+ node_modules/@babel/runtime_7.26.0/helpers/arrayLikeToArray.js:790be5d6822a112c9007
8
+ node_modules/@babel/runtime_7.26.0/helpers/iterableToArray.js:caf268f6252e2825d074
9
+ node_modules/@babel/runtime_7.26.0/helpers/unsupportedIterableToArray.js:bb86eb755213422b1850
10
+ node_modules/@babel/runtime_7.26.0/helpers/nonIterableSpread.js:e82afc4c0fee49992755
11
+ node_modules/@babel/runtime_7.26.0/helpers/classCallCheck.js:7ba3d97b9a1c7b5d2869
12
+ node_modules/@babel/runtime_7.26.0/helpers/createClass.js:51a05661f80df8a7ec74
13
+ node_modules/@babel/runtime_7.26.0/helpers/toPropertyKey.js:83653ba9ba6a6acbaf3f
14
+ node_modules/@babel/runtime_7.26.0/helpers/toPrimitive.js:44d8868b36ed13d4848c
15
+ node_modules/@babel/runtime_7.26.0/helpers/typeof.js:9beefbd2b38f15e68c8e
16
+ node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
17
+ node_modules/@babel/runtime_7.26.0/helpers/slicedToArray.js:483ae341f8ec81c793b7
18
+ node_modules/@babel/runtime_7.26.0/helpers/arrayWithHoles.js:783a1c105475cee3e6c5
19
+ node_modules/@babel/runtime_7.26.0/helpers/iterableToArrayLimit.js:848b0a42822f8876517a
20
+ node_modules/@babel/runtime_7.26.0/helpers/nonIterableRest.js:7df430fde83911c4a777
21
+ node_modules/nullthrows_1.1.1/nullthrows.js:afd4874b36ccd4e13961
22
+ node_modules/@babel/runtime_7.26.0/helpers/possibleConstructorReturn.js:1a2fe3e5fa067fc0a581
23
+ node_modules/@babel/runtime_7.26.0/helpers/assertThisInitialized.js:8fb490053e9935245ab2
24
+ node_modules/@babel/runtime_7.26.0/helpers/getPrototypeOf.js:9f001f493a532727260d
25
+ node_modules/@babel/runtime_7.26.0/helpers/inherits.js:106616352dc94f6a631a
26
+ node_modules/@babel/runtime_7.26.0/helpers/setPrototypeOf.js:b3795059b892586ade34
27
+ node_modules/@babel/runtime_7.26.0/helpers/readOnlyError.js:1ce02919a2278f04e7f0
28
+ node_modules/@babel/runtime_7.26.0/helpers/wrapNativeSuper.js:eb04c83a2c7f1c2f7a42
29
+ node_modules/@babel/runtime_7.26.0/helpers/isNativeFunction.js:3ce4e050494cfa1d5417
30
+ node_modules/@babel/runtime_7.26.0/helpers/construct.js:bc6843521062ed051490
31
+ node_modules/@babel/runtime_7.26.0/helpers/isNativeReflectConstruct.js:8962e626888f4268c6fc
32
+ node_modules/stacktrace-parser_0.1.10/dist/stack-trace-parser.cjs.js:189d72d0eb41570f5e74
33
+ node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
34
+ node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
35
+ node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
36
+ node_modules/regenerator-runtime_0.13.11/runtime.js:af823d9710c534173a4d
37
+ node_modules/@babel/runtime_7.26.0/helpers/get.js:4b1a4e373780ac89a3a3
38
+ node_modules/@babel/runtime_7.26.0/helpers/superPropBase.js:b7261b01f9f721400840
39
+ node_modules/event-target-shim_5.0.1/dist/event-target-shim.js:2bd3f165b1ed6b916de7
40
+ node_modules/base64-js_1.5.1/index.js:71af70f51435e3e1b37b
41
+ node_modules/whatwg-fetch_3.6.20/dist/fetch.umd.js:ca4b0363146267ef3e77
42
+ node_modules/@babel/runtime_7.26.0/helpers/objectWithoutProperties.js:288fc9023aadbf916360
43
+ node_modules/@babel/runtime_7.26.0/helpers/objectWithoutPropertiesLoose.js:227b8be7a5ddac0008f4
44
+ node_modules/abort-controller_3.0.0/dist/abort-controller.js:ea8fcbd647aab1cfcdaa
45
+ node_modules/@react-native/normalize-colors_0.72.0/index.js:bab9017c6ff43bb4a95b
46
+ node_modules/@babel/runtime_7.26.0/helpers/defineProperty.js:f08cf7e9c32002e6bb9e
47
+ node_modules/@react-native/assets-registry_0.72.0/registry.js:05d58bec2a6d939f08d8
48
+ node_modules/@react-native/assets-registry_0.72.0/path-support.js:914260cfb55fe13c431c
49
+ node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/index.native.js:d57407eff7026d491c8a
50
+ node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/cjs/scheduler.native.production.min.js:9daefd1335ff675770cb
51
+ node_modules/deprecated-react-native-prop-types_4.1.0/index.js:4b5aec8d0b1af0b13fc9
52
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedColorPropType.js:0ff2848f3ff6f1a02356
53
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedEdgeInsetsPropType.js:e113bc2a6b8133e753f1
54
+ node_modules/prop-types_15.8.1/index.js:385f56cce85bf58dda18
55
+ node_modules/prop-types_15.8.1/factoryWithThrowingShims.js:211f6d600f40629e26d0
56
+ node_modules/prop-types_15.8.1/lib/ReactPropTypesSecret.js:3ac224506c12c2b4339c
57
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImagePropType.js:9f1779357aba412bb49f
58
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewPropTypes.js:6a37ec0494ff683c49f2
59
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewAccessibility.js:dc269c006cd52aa8a392
60
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedStyleSheetPropType.js:ecd8893ff4b33ee73955
61
+ node_modules/deprecated-react-native-prop-types_4.1.0/deprecatedCreateStrictShapeTypeChecker.js:2c266ae4211321471d0d
62
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedViewStylePropTypes.js:b0bd5168a69d8a903511
63
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedLayoutPropTypes.js:fdc284a1196df7b8b1c7
64
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedShadowPropTypesIOS.js:c694fefe532e4748da9d
65
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTransformPropTypes.js:1dd7395967b3c81dc0f2
66
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageSourcePropType.js:00fed86b64880bf848bf
67
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedImageStylePropTypes.js:0b77c2d463c8dbef3508
68
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedPointPropType.js:792d53fa12840d39c921
69
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextInputPropTypes.js:a287f54379336e9f732c
70
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextPropTypes.js:14b8482f38362fa2f8cd
71
+ node_modules/deprecated-react-native-prop-types_4.1.0/DeprecatedTextStylePropTypes.js:41bd16fe8e2d1af40264
72
+ node_modules/memoize-one_5.2.1/dist/memoize-one.cjs.js:d381691ed29bec5a2050
73
+ node_modules/@react-native/virtualized-lists_0.72.8/index.js:27b237d1799650306cb9
74
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizeUtils.js:a26dbe2a3afa21c3cf22
75
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedList.js:c4b46015e44050527820
76
+ node_modules/@react-native/virtualized-lists_0.72.8/Interaction/Batchinator.js:1953ac0cbf7ac32b33d6
77
+ node_modules/@react-native/virtualized-lists_0.72.8/Utilities/clamp.js:a30729068ebd0dea58f8
78
+ node_modules/@react-native/virtualized-lists_0.72.8/Utilities/infoLog.js:4fd7218f700134f011e9
79
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/ChildListCollection.js:718d6cdfb3fb081a232d
80
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/FillRateHelper.js:3e01a5bc929e85870fe5
81
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/StateSafePureComponent.js:04ffc79d4da370644bce
82
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/ViewabilityHelper.js:8bafab90a37cab64b100
83
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListCellRenderer.js:ce5f423367f40f3628a8
84
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedListContext.js:e6b1ef1f5b720d640981
85
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/CellRenderMask.js:de5ab026f9499640d730
86
+ node_modules/@react-native/virtualized-lists_0.72.8/Lists/VirtualizedSectionList.js:d2355175ff6609a3def1
87
+ node_modules/@babel/runtime_7.26.0/helpers/asyncToGenerator.js:ea48108a6867e7ab71ad
88
+ node_modules/use-sync-external-store_1.2.2/shim/index.native.js:f1b3855a69d8eff82434
89
+ node_modules/use-sync-external-store_1.2.2/cjs/use-sync-external-store-shim.native.production.min.js:5d8c3034f885ee036c2b
90
+ node_modules/@babel/runtime_7.26.0/helpers/classPrivateFieldLooseKey.js:7f66c94a6a95aa0d133b
91
+ node_modules/@babel/runtime_7.26.0/helpers/classPrivateFieldLooseBase.js:ad166880e439eedd808a
92
+ node_modules/react-native-pager-view_6.5.0/src/index.tsx:502dfa86262590844712
93
+ node_modules/react-native-pager-view_6.5.0/src/usePagerView.ts:1589ac2165ce7e5e909e
94
+ node_modules/react-native-pager-view_6.5.0/src/PagerView.tsx:aa23a2c3060eace32908
95
+ node_modules/react-native-pager-view_6.5.0/src/specs/PagerViewNativeComponent.ts:b628a263318511b52f47
96
+ node_modules/react-native-pager-view_6.5.0/src/specs/LEGACY_PagerViewNativeComponent.ts:2010d8fa92d7cc14e0ac
97
+ node_modules/react-native-pager-view_6.5.0/src/utils.tsx:40c4db3270a17fe67ffe
98
+ node_modules/use-latest-callback_0.1.6/lib/index.js:6e9cf0716929115a1392
@@ -0,0 +1,7 @@
1
+ {
2
+ "@amzn/react-navigation__react-native-tab-view": {
3
+ "nameOnDevice": "index.amzn__react-navigation__react-native-tab-view-2.hermes.bundle",
4
+ "modulesPath": "amzn__react-navigation__react-native-tab-view-2.modules.txt",
5
+ "privateModulesPath": "amzn__react-navigation__react-native-tab-view-2.private.modules.txt"
6
+ }
7
+ }
@@ -0,0 +1,24 @@
1
+ License from package.json:
2
+ ========================================
3
+
4
+ MIT License
5
+
6
+ Copyright (c) 2017 React Native Community
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ {
2
+ "versions": {
3
+ "2.0.0": "/com.amazon.kepler.navigation__tab_view_2@INavigation__TabView_0",
4
+ "2.0.1756406152": "/com.amazon.kepler.navigation__tab_view_2@INavigation__TabView_0",
5
+ "2.0.1758654000": "/com.amazon.kepler.navigation__tab_view_2@INavigation__TabView_0",
6
+ "2.0.1758683737": "/com.amazon.kepler.navigation__tab_view_2@INavigation__TabView_0"
7
+ }
8
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "sourcePackageRef": "@amzn/react-navigation__react-native-tab-view"
3
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _PagerViewAdapter.default;
10
+ }
11
+ });
12
+ var _PagerViewAdapter = _interopRequireDefault(require("./PagerViewAdapter"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=Pager.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_PagerViewAdapter","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../src","sources":["Pager.android.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _PagerViewAdapter.default;
10
+ }
11
+ });
12
+ var _PagerViewAdapter = _interopRequireDefault(require("./PagerViewAdapter"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=Pager.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_PagerViewAdapter","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../src","sources":["Pager.ios.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _PanResponderAdapter.default;
10
+ }
11
+ });
12
+ var _PanResponderAdapter = _interopRequireDefault(require("./PanResponderAdapter"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ //# sourceMappingURL=Pager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_PanResponderAdapter","_interopRequireDefault","require","e","__esModule","default"],"sourceRoot":"../../src","sources":["Pager.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = PagerViewAdapter;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativePagerView = _interopRequireDefault(require("react-native-pager-view"));
10
+ var _useAnimatedValue = _interopRequireDefault(require("./useAnimatedValue"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ 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); }
13
+ 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 && {}.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; }
14
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
15
+ const AnimatedViewPager = _reactNative.Animated.createAnimatedComponent(_reactNativePagerView.default);
16
+ function PagerViewAdapter({
17
+ keyboardDismissMode = 'auto',
18
+ swipeEnabled = true,
19
+ navigationState,
20
+ onIndexChange,
21
+ onSwipeStart,
22
+ onSwipeEnd,
23
+ children,
24
+ style,
25
+ animationEnabled,
26
+ ...rest
27
+ }) {
28
+ const {
29
+ index
30
+ } = navigationState;
31
+ const listenersRef = React.useRef([]);
32
+ const pagerRef = React.useRef(null);
33
+ const indexRef = React.useRef(index);
34
+ const navigationStateRef = React.useRef(navigationState);
35
+ const position = (0, _useAnimatedValue.default)(index);
36
+ const offset = (0, _useAnimatedValue.default)(0);
37
+ React.useEffect(() => {
38
+ navigationStateRef.current = navigationState;
39
+ });
40
+ const jumpTo = React.useCallback(key => {
41
+ const index = navigationStateRef.current.routes.findIndex(route => route.key === key);
42
+ if (animationEnabled) {
43
+ var _pagerRef$current;
44
+ (_pagerRef$current = pagerRef.current) === null || _pagerRef$current === void 0 || _pagerRef$current.setPage(index);
45
+ } else {
46
+ var _pagerRef$current2;
47
+ (_pagerRef$current2 = pagerRef.current) === null || _pagerRef$current2 === void 0 || _pagerRef$current2.setPageWithoutAnimation(index);
48
+ position.setValue(index);
49
+ }
50
+ }, [animationEnabled, position]);
51
+ React.useEffect(() => {
52
+ if (keyboardDismissMode === 'auto') {
53
+ _reactNative.Keyboard.dismiss();
54
+ }
55
+ if (indexRef.current !== index) {
56
+ if (animationEnabled) {
57
+ var _pagerRef$current3;
58
+ (_pagerRef$current3 = pagerRef.current) === null || _pagerRef$current3 === void 0 || _pagerRef$current3.setPage(index);
59
+ } else {
60
+ var _pagerRef$current4;
61
+ (_pagerRef$current4 = pagerRef.current) === null || _pagerRef$current4 === void 0 || _pagerRef$current4.setPageWithoutAnimation(index);
62
+ position.setValue(index);
63
+ }
64
+ }
65
+ }, [keyboardDismissMode, index, animationEnabled, position]);
66
+ const onPageScrollStateChanged = state => {
67
+ const {
68
+ pageScrollState
69
+ } = state.nativeEvent;
70
+ switch (pageScrollState) {
71
+ case 'idle':
72
+ onSwipeEnd === null || onSwipeEnd === void 0 || onSwipeEnd();
73
+ return;
74
+ case 'dragging':
75
+ {
76
+ const subscription = offset.addListener(({
77
+ value
78
+ }) => {
79
+ const next = index + (value > 0 ? Math.ceil(value) : Math.floor(value));
80
+ if (next !== index) {
81
+ listenersRef.current.forEach(listener => listener(next));
82
+ }
83
+ offset.removeListener(subscription);
84
+ });
85
+ onSwipeStart === null || onSwipeStart === void 0 || onSwipeStart();
86
+ return;
87
+ }
88
+ }
89
+ };
90
+ const addEnterListener = React.useCallback(listener => {
91
+ listenersRef.current.push(listener);
92
+ return () => {
93
+ const index = listenersRef.current.indexOf(listener);
94
+ if (index > -1) {
95
+ listenersRef.current.splice(index, 1);
96
+ }
97
+ };
98
+ }, []);
99
+ const memoizedPosition = React.useMemo(() => _reactNative.Animated.add(position, offset), [offset, position]);
100
+ return children({
101
+ position: memoizedPosition,
102
+ addEnterListener,
103
+ jumpTo,
104
+ render: children => /*#__PURE__*/React.createElement(AnimatedViewPager, _extends({}, rest, {
105
+ ref: pagerRef,
106
+ style: [styles.container, style],
107
+ initialPage: index,
108
+ keyboardDismissMode: keyboardDismissMode === 'auto' ? 'on-drag' : keyboardDismissMode,
109
+ onPageScroll: _reactNative.Animated.event([{
110
+ nativeEvent: {
111
+ position: position,
112
+ offset: offset
113
+ }
114
+ }], {
115
+ useNativeDriver: true
116
+ }),
117
+ onPageSelected: e => {
118
+ const index = e.nativeEvent.position;
119
+ indexRef.current = index;
120
+ onIndexChange(index);
121
+ },
122
+ onPageScrollStateChanged: onPageScrollStateChanged,
123
+ scrollEnabled: swipeEnabled
124
+ }), children)
125
+ });
126
+ }
127
+ const styles = _reactNative.StyleSheet.create({
128
+ container: {
129
+ flex: 1
130
+ }
131
+ });
132
+ //# sourceMappingURL=PagerViewAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativePagerView","_interopRequireDefault","_useAnimatedValue","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","AnimatedViewPager","Animated","createAnimatedComponent","ViewPager","PagerViewAdapter","keyboardDismissMode","swipeEnabled","navigationState","onIndexChange","onSwipeStart","onSwipeEnd","children","style","animationEnabled","rest","index","listenersRef","useRef","pagerRef","indexRef","navigationStateRef","position","useAnimatedValue","offset","useEffect","current","jumpTo","useCallback","key","routes","findIndex","route","_pagerRef$current","setPage","_pagerRef$current2","setPageWithoutAnimation","setValue","Keyboard","dismiss","_pagerRef$current3","_pagerRef$current4","onPageScrollStateChanged","state","pageScrollState","nativeEvent","subscription","addListener","value","next","Math","ceil","floor","forEach","listener","removeListener","addEnterListener","push","indexOf","splice","memoizedPosition","useMemo","add","render","createElement","ref","styles","container","initialPage","onPageScroll","event","useNativeDriver","onPageSelected","scrollEnabled","StyleSheet","create","flex"],"sourceRoot":"../../src","sources":["PagerViewAdapter.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAWA,IAAAI,iBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAkD,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,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EA,QAAQ;UAClBE,MAAM,EAAEA;QACV;MACF,CAAC,CACF,EACD;QAAE+C,eAAe,EAAE;MAAK,CAC1B,CAAE;MACFC,cAAc,EAAGjG,CAAC,IAAK;QACrB,MAAMyC,KAAK,GAAGzC,CAAC,CAACsE,WAAW,CAACvB,QAAQ;QACpCF,QAAQ,CAACM,OAAO,GAAGV,KAAK;QACxBP,aAAa,CAACO,KAAK,CAAC;MACtB,CAAE;MACF0B,wBAAwB,EAAEA,wBAAyB;MACnD+B,aAAa,EAAElE;IAAa,IAE3BK,QACgB;EAEvB,CAAC,CAAC;AACJ;AAEA,MAAMsD,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IACTS,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = PanResponderAdapter;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _useAnimatedValue = _interopRequireDefault(require("./useAnimatedValue"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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 && {}.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
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
+ const DEAD_ZONE = 12;
15
+ const DefaultTransitionSpec = {
16
+ timing: _reactNative.Animated.spring,
17
+ stiffness: 1000,
18
+ damping: 500,
19
+ mass: 3,
20
+ overshootClamping: true
21
+ };
22
+ function PanResponderAdapter({
23
+ layout,
24
+ keyboardDismissMode = 'auto',
25
+ swipeEnabled = true,
26
+ navigationState,
27
+ onIndexChange,
28
+ onSwipeStart,
29
+ onSwipeEnd,
30
+ children,
31
+ style,
32
+ animationEnabled = false
33
+ }) {
34
+ const {
35
+ routes,
36
+ index
37
+ } = navigationState;
38
+ const panX = (0, _useAnimatedValue.default)(0);
39
+ const listenersRef = React.useRef([]);
40
+ const navigationStateRef = React.useRef(navigationState);
41
+ const layoutRef = React.useRef(layout);
42
+ const onIndexChangeRef = React.useRef(onIndexChange);
43
+ const currentIndexRef = React.useRef(index);
44
+ const pendingIndexRef = React.useRef();
45
+ const swipeVelocityThreshold = 0.15;
46
+ const swipeDistanceThreshold = layout.width / 1.75;
47
+ const jumpToIndex = React.useCallback((index, animate = animationEnabled) => {
48
+ const offset = -index * layoutRef.current.width;
49
+ const {
50
+ timing,
51
+ ...transitionConfig
52
+ } = DefaultTransitionSpec;
53
+ if (animate) {
54
+ _reactNative.Animated.parallel([timing(panX, {
55
+ ...transitionConfig,
56
+ toValue: offset,
57
+ useNativeDriver: false
58
+ })]).start(({
59
+ finished
60
+ }) => {
61
+ if (finished) {
62
+ onIndexChangeRef.current(index);
63
+ pendingIndexRef.current = undefined;
64
+ }
65
+ });
66
+ pendingIndexRef.current = index;
67
+ } else {
68
+ panX.setValue(offset);
69
+ onIndexChangeRef.current(index);
70
+ pendingIndexRef.current = undefined;
71
+ }
72
+ }, [animationEnabled, panX]);
73
+ React.useEffect(() => {
74
+ navigationStateRef.current = navigationState;
75
+ layoutRef.current = layout;
76
+ onIndexChangeRef.current = onIndexChange;
77
+ });
78
+ React.useEffect(() => {
79
+ const offset = -navigationStateRef.current.index * layout.width;
80
+ panX.setValue(offset);
81
+ }, [layout.width, panX]);
82
+ React.useEffect(() => {
83
+ if (keyboardDismissMode === 'auto') {
84
+ _reactNative.Keyboard.dismiss();
85
+ }
86
+ if (layout.width && currentIndexRef.current !== index) {
87
+ currentIndexRef.current = index;
88
+ jumpToIndex(index);
89
+ }
90
+ }, [jumpToIndex, keyboardDismissMode, layout.width, index]);
91
+ const isMovingHorizontally = (_, gestureState) => {
92
+ return Math.abs(gestureState.dx) > Math.abs(gestureState.dy * 2) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy * 2);
93
+ };
94
+ const canMoveScreen = (event, gestureState) => {
95
+ if (swipeEnabled === false) {
96
+ return false;
97
+ }
98
+ const diffX = _reactNative.I18nManager.isRTL ? -gestureState.dx : gestureState.dx;
99
+ return isMovingHorizontally(event, gestureState) && (diffX >= DEAD_ZONE && currentIndexRef.current > 0 || diffX <= -DEAD_ZONE && currentIndexRef.current < routes.length - 1);
100
+ };
101
+ const startGesture = () => {
102
+ onSwipeStart === null || onSwipeStart === void 0 || onSwipeStart();
103
+ if (keyboardDismissMode === 'on-drag') {
104
+ _reactNative.Keyboard.dismiss();
105
+ }
106
+ panX.stopAnimation();
107
+ // @ts-expect-error: _value is private, but docs use it as well
108
+ panX.setOffset(panX._value);
109
+ };
110
+ const respondToGesture = (_, gestureState) => {
111
+ const diffX = _reactNative.I18nManager.isRTL ? -gestureState.dx : gestureState.dx;
112
+ if (
113
+ // swiping left
114
+ diffX > 0 && index <= 0 ||
115
+ // swiping right
116
+ diffX < 0 && index >= routes.length - 1) {
117
+ return;
118
+ }
119
+ if (layout.width) {
120
+ // @ts-expect-error: _offset is private, but docs use it as well
121
+ const position = (panX._offset + diffX) / -layout.width;
122
+ const next = position > index ? Math.ceil(position) : Math.floor(position);
123
+ if (next !== index) {
124
+ listenersRef.current.forEach(listener => listener(next));
125
+ }
126
+ }
127
+ panX.setValue(diffX);
128
+ };
129
+ const finishGesture = (_, gestureState) => {
130
+ panX.flattenOffset();
131
+ onSwipeEnd === null || onSwipeEnd === void 0 || onSwipeEnd();
132
+ const currentIndex = typeof pendingIndexRef.current === 'number' ? pendingIndexRef.current : currentIndexRef.current;
133
+ let nextIndex = currentIndex;
134
+ if (Math.abs(gestureState.dx) > Math.abs(gestureState.dy) && Math.abs(gestureState.vx) > Math.abs(gestureState.vy) && (Math.abs(gestureState.dx) > swipeDistanceThreshold || Math.abs(gestureState.vx) > swipeVelocityThreshold)) {
135
+ nextIndex = Math.round(Math.min(Math.max(0, _reactNative.I18nManager.isRTL ? currentIndex + gestureState.dx / Math.abs(gestureState.dx) : currentIndex - gestureState.dx / Math.abs(gestureState.dx)), routes.length - 1));
136
+ currentIndexRef.current = nextIndex;
137
+ }
138
+ if (!isFinite(nextIndex)) {
139
+ nextIndex = currentIndex;
140
+ }
141
+ jumpToIndex(nextIndex, true);
142
+ };
143
+
144
+ // TODO: use the listeners
145
+ const addEnterListener = React.useCallback(listener => {
146
+ listenersRef.current.push(listener);
147
+ return () => {
148
+ const index = listenersRef.current.indexOf(listener);
149
+ if (index > -1) {
150
+ listenersRef.current.splice(index, 1);
151
+ }
152
+ };
153
+ }, []);
154
+ const jumpTo = React.useCallback(key => {
155
+ const index = navigationStateRef.current.routes.findIndex(route => route.key === key);
156
+ jumpToIndex(index);
157
+ }, [jumpToIndex]);
158
+ const panResponder = _reactNative.PanResponder.create({
159
+ onMoveShouldSetPanResponder: canMoveScreen,
160
+ onMoveShouldSetPanResponderCapture: canMoveScreen,
161
+ onPanResponderGrant: startGesture,
162
+ onPanResponderMove: respondToGesture,
163
+ onPanResponderTerminate: finishGesture,
164
+ onPanResponderRelease: finishGesture,
165
+ onPanResponderTerminationRequest: () => true
166
+ });
167
+ const maxTranslate = layout.width * (routes.length - 1);
168
+ const translateX = _reactNative.Animated.multiply(panX.interpolate({
169
+ inputRange: [-maxTranslate, 0],
170
+ outputRange: [-maxTranslate, 0],
171
+ extrapolate: 'clamp'
172
+ }), _reactNative.I18nManager.isRTL ? -1 : 1);
173
+ const position = React.useMemo(() => layout.width ? _reactNative.Animated.divide(panX, -layout.width) : null, [layout.width, panX]);
174
+ return children({
175
+ position: position ?? new _reactNative.Animated.Value(index),
176
+ addEnterListener,
177
+ jumpTo,
178
+ render: children => /*#__PURE__*/React.createElement(_reactNative.Animated.View, _extends({
179
+ style: [styles.sheet, layout.width ? {
180
+ width: routes.length * layout.width,
181
+ transform: [{
182
+ translateX
183
+ }]
184
+ } : null, style]
185
+ }, panResponder.panHandlers), React.Children.map(children, (child, i) => {
186
+ const route = routes[i];
187
+ const focused = i === index;
188
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
189
+ key: route.key,
190
+ style: layout.width ? {
191
+ width: layout.width
192
+ } : focused ? _reactNative.StyleSheet.absoluteFill : null
193
+ }, focused || layout.width ? child : null);
194
+ }))
195
+ });
196
+ }
197
+ const styles = _reactNative.StyleSheet.create({
198
+ sheet: {
199
+ flex: 1,
200
+ flexDirection: 'row',
201
+ alignItems: 'stretch'
202
+ }
203
+ });
204
+ //# sourceMappingURL=PanResponderAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_useAnimatedValue","_interopRequireDefault","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DEAD_ZONE","DefaultTransitionSpec","timing","Animated","spring","stiffness","damping","mass","overshootClamping","PanResponderAdapter","layout","keyboardDismissMode","swipeEnabled","navigationState","onIndexChange","onSwipeStart","onSwipeEnd","children","style","animationEnabled","routes","index","panX","useAnimatedValue","listenersRef","useRef","navigationStateRef","layoutRef","onIndexChangeRef","currentIndexRef","pendingIndexRef","swipeVelocityThreshold","swipeDistanceThreshold","width","jumpToIndex","useCallback","animate","offset","current","transitionConfig","parallel","toValue","useNativeDriver","start","finished","undefined","setValue","useEffect","Keyboard","dismiss","isMovingHorizontally","_","gestureState","Math","abs","dx","dy","vx","vy","canMoveScreen","event","diffX","I18nManager","isRTL","startGesture","stopAnimation","setOffset","_value","respondToGesture","position","_offset","next","ceil","floor","forEach","listener","finishGesture","flattenOffset","currentIndex","nextIndex","round","min","max","isFinite","addEnterListener","push","indexOf","splice","jumpTo","key","findIndex","route","panResponder","PanResponder","create","onMoveShouldSetPanResponder","onMoveShouldSetPanResponderCapture","onPanResponderGrant","onPanResponderMove","onPanResponderTerminate","onPanResponderRelease","onPanResponderTerminationRequest","maxTranslate","translateX","multiply","interpolate","inputRange","outputRange","extrapolate","useMemo","divide","Value","render","createElement","View","styles","sheet","transform","panHandlers","Children","map","child","focused","StyleSheet","absoluteFill","flex","flexDirection","alignItems"],"sourceRoot":"../../src","sources":["PanResponderAdapter.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAmBA,IAAAE,iBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAkD,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAA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