react-native-drawer-layout 4.0.0-alpha.8 → 4.0.0-rc.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 (73) hide show
  1. package/lib/commonjs/index.js +0 -7
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/types.js.map +1 -1
  4. package/lib/commonjs/utils/DrawerProgressContext.js +1 -1
  5. package/lib/commonjs/utils/DrawerProgressContext.js.map +1 -1
  6. package/lib/commonjs/utils/getDrawerWidth.js +7 -9
  7. package/lib/commonjs/utils/getDrawerWidth.js.map +1 -1
  8. package/lib/commonjs/utils/useDrawerProgress.js +1 -1
  9. package/lib/commonjs/utils/useDrawerProgress.js.map +1 -1
  10. package/lib/commonjs/utils/useFakeSharedValue.js +1 -1
  11. package/lib/commonjs/utils/useFakeSharedValue.js.map +1 -1
  12. package/lib/commonjs/views/Drawer.js +36 -21
  13. package/lib/commonjs/views/Drawer.js.map +1 -1
  14. package/lib/commonjs/views/Drawer.native.js +60 -74
  15. package/lib/commonjs/views/Drawer.native.js.map +1 -1
  16. package/lib/commonjs/views/GestureHandler.android.js.map +1 -1
  17. package/lib/commonjs/views/GestureHandler.ios.js.map +1 -1
  18. package/lib/commonjs/views/GestureHandler.js +13 -8
  19. package/lib/commonjs/views/GestureHandler.js.map +1 -1
  20. package/lib/commonjs/views/GestureHandlerNative.js +12 -17
  21. package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
  22. package/lib/commonjs/views/Overlay.js +9 -10
  23. package/lib/commonjs/views/Overlay.js.map +1 -1
  24. package/lib/commonjs/views/Overlay.native.js +9 -10
  25. package/lib/commonjs/views/Overlay.native.js.map +1 -1
  26. package/lib/module/index.js +0 -1
  27. package/lib/module/index.js.map +1 -1
  28. package/lib/module/types.js.map +1 -1
  29. package/lib/module/utils/DrawerProgressContext.js.map +1 -1
  30. package/lib/module/utils/getDrawerWidth.js +7 -9
  31. package/lib/module/utils/getDrawerWidth.js.map +1 -1
  32. package/lib/module/utils/useDrawerProgress.js.map +1 -1
  33. package/lib/module/utils/useFakeSharedValue.js.map +1 -1
  34. package/lib/module/views/Drawer.js +34 -19
  35. package/lib/module/views/Drawer.js.map +1 -1
  36. package/lib/module/views/Drawer.native.js +60 -74
  37. package/lib/module/views/Drawer.native.js.map +1 -1
  38. package/lib/module/views/GestureHandler.android.js.map +1 -1
  39. package/lib/module/views/GestureHandler.ios.js.map +1 -1
  40. package/lib/module/views/GestureHandler.js +11 -6
  41. package/lib/module/views/GestureHandler.js.map +1 -1
  42. package/lib/module/views/GestureHandlerNative.js +1 -10
  43. package/lib/module/views/GestureHandlerNative.js.map +1 -1
  44. package/lib/module/views/Overlay.js +8 -9
  45. package/lib/module/views/Overlay.js.map +1 -1
  46. package/lib/module/views/Overlay.native.js +8 -9
  47. package/lib/module/views/Overlay.native.js.map +1 -1
  48. package/lib/typescript/src/index.d.ts +0 -1
  49. package/lib/typescript/src/index.d.ts.map +1 -1
  50. package/lib/typescript/src/types.d.ts +8 -4
  51. package/lib/typescript/src/types.d.ts.map +1 -1
  52. package/lib/typescript/src/views/Drawer.d.ts +1 -1
  53. package/lib/typescript/src/views/Drawer.d.ts.map +1 -1
  54. package/lib/typescript/src/views/Drawer.native.d.ts +1 -1
  55. package/lib/typescript/src/views/Drawer.native.d.ts.map +1 -1
  56. package/lib/typescript/src/views/GestureHandler.d.ts +9 -3
  57. package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -1
  58. package/lib/typescript/src/views/GestureHandlerNative.d.ts +1 -4
  59. package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -1
  60. package/package.json +4 -4
  61. package/src/index.tsx +0 -1
  62. package/src/types.tsx +9 -4
  63. package/src/views/Drawer.native.tsx +44 -43
  64. package/src/views/Drawer.tsx +26 -15
  65. package/src/views/GestureHandler.tsx +20 -14
  66. package/src/views/GestureHandlerNative.tsx +2 -19
  67. package/lib/commonjs/utils/DrawerGestureContext.js +0 -11
  68. package/lib/commonjs/utils/DrawerGestureContext.js.map +0 -1
  69. package/lib/module/utils/DrawerGestureContext.js +0 -3
  70. package/lib/module/utils/DrawerGestureContext.js.map +0 -1
  71. package/lib/typescript/src/utils/DrawerGestureContext.d.ts +0 -3
  72. package/lib/typescript/src/utils/DrawerGestureContext.d.ts.map +0 -1
  73. package/src/utils/DrawerGestureContext.tsx +0 -4
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DrawerGestureContext = void 0;
7
- var React = _interopRequireWildcard(require("react"));
8
- 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); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
- const DrawerGestureContext = exports.DrawerGestureContext = /*#__PURE__*/React.createContext(null);
11
- //# sourceMappingURL=DrawerGestureContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DrawerGestureContext","exports","createContext"],"sourceRoot":"../../../src","sources":["utils/DrawerGestureContext.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CA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# sourceMappingURL=DrawerGestureContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","DrawerGestureContext","createContext"],"sourceRoot":"../../../src","sources":["utils/DrawerGestureContext.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAE9B,OAAO,MAAMC,oBAAoB,gBAC/BD,KAAK,CAACE,aAAa,CAA8B,IAAI,CAAC"}
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- export declare const DrawerGestureContext: React.Context<React.RefObject<any> | null>;
3
- //# sourceMappingURL=DrawerGestureContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DrawerGestureContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/DrawerGestureContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,oBAAoB,4CACuB,CAAC"}
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
-
3
- export const DrawerGestureContext =
4
- React.createContext<React.RefObject<any> | null>(null);