@react-navigation/drawer 6.5.3 → 6.5.5

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 (144) hide show
  1. package/lib/commonjs/index.js +7 -13
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/navigators/createDrawerNavigator.js +0 -15
  4. package/lib/commonjs/navigators/createDrawerNavigator.js.map +1 -1
  5. package/lib/commonjs/types.js.map +1 -1
  6. package/lib/commonjs/utils/DrawerGestureContext.js +0 -5
  7. package/lib/commonjs/utils/DrawerGestureContext.js.map +1 -1
  8. package/lib/commonjs/utils/DrawerPositionContext.js +0 -5
  9. package/lib/commonjs/utils/DrawerPositionContext.js.map +1 -1
  10. package/lib/commonjs/utils/DrawerProgressContext.js +0 -5
  11. package/lib/commonjs/utils/DrawerProgressContext.js.map +1 -1
  12. package/lib/commonjs/utils/DrawerStatusContext.js +0 -4
  13. package/lib/commonjs/utils/DrawerStatusContext.js.map +1 -1
  14. package/lib/commonjs/utils/getDrawerStatusFromState.js +1 -5
  15. package/lib/commonjs/utils/getDrawerStatusFromState.js.map +1 -1
  16. package/lib/commonjs/utils/useDrawerProgress.js +0 -8
  17. package/lib/commonjs/utils/useDrawerProgress.js.map +1 -1
  18. package/lib/commonjs/utils/useDrawerStatus.js +0 -8
  19. package/lib/commonjs/utils/useDrawerStatus.js.map +1 -1
  20. package/lib/commonjs/views/DrawerContent.js +0 -8
  21. package/lib/commonjs/views/DrawerContent.js.map +1 -1
  22. package/lib/commonjs/views/DrawerContentScrollView.js +0 -12
  23. package/lib/commonjs/views/DrawerContentScrollView.js.map +1 -1
  24. package/lib/commonjs/views/DrawerItem.js +8 -21
  25. package/lib/commonjs/views/DrawerItem.js.map +1 -1
  26. package/lib/commonjs/views/DrawerItemList.js +2 -11
  27. package/lib/commonjs/views/DrawerItemList.js.map +1 -1
  28. package/lib/commonjs/views/DrawerToggleButton.js +0 -9
  29. package/lib/commonjs/views/DrawerToggleButton.js.map +1 -1
  30. package/lib/commonjs/views/DrawerView.js +9 -52
  31. package/lib/commonjs/views/DrawerView.js.map +1 -1
  32. package/lib/commonjs/views/GestureHandler.android.js +0 -2
  33. package/lib/commonjs/views/GestureHandler.android.js.map +1 -1
  34. package/lib/commonjs/views/GestureHandler.ios.js +0 -2
  35. package/lib/commonjs/views/GestureHandler.ios.js.map +1 -1
  36. package/lib/commonjs/views/GestureHandler.js +0 -6
  37. package/lib/commonjs/views/GestureHandler.js.map +1 -1
  38. package/lib/commonjs/views/GestureHandlerNative.js +0 -7
  39. package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
  40. package/lib/commonjs/views/ScreenFallback.js +2 -18
  41. package/lib/commonjs/views/ScreenFallback.js.map +1 -1
  42. package/lib/commonjs/views/legacy/Drawer.js +62 -105
  43. package/lib/commonjs/views/legacy/Drawer.js.map +1 -1
  44. package/lib/commonjs/views/legacy/Overlay.js +3 -13
  45. package/lib/commonjs/views/legacy/Overlay.js.map +1 -1
  46. package/lib/commonjs/views/modern/Drawer.js +20 -41
  47. package/lib/commonjs/views/modern/Drawer.js.map +1 -1
  48. package/lib/commonjs/views/modern/Overlay.js +4 -12
  49. package/lib/commonjs/views/modern/Overlay.js.map +1 -1
  50. package/lib/module/index.js +4 -2
  51. package/lib/module/index.js.map +1 -1
  52. package/lib/module/navigators/createDrawerNavigator.js +0 -7
  53. package/lib/module/navigators/createDrawerNavigator.js.map +1 -1
  54. package/lib/module/types.js.map +1 -1
  55. package/lib/module/utils/DrawerGestureContext.js.map +1 -1
  56. package/lib/module/utils/DrawerPositionContext.js.map +1 -1
  57. package/lib/module/utils/DrawerProgressContext.js.map +1 -1
  58. package/lib/module/utils/DrawerStatusContext.js.map +1 -1
  59. package/lib/module/utils/getDrawerStatusFromState.js +1 -4
  60. package/lib/module/utils/getDrawerStatusFromState.js.map +1 -1
  61. package/lib/module/utils/useDrawerProgress.js +0 -2
  62. package/lib/module/utils/useDrawerProgress.js.map +1 -1
  63. package/lib/module/utils/useDrawerStatus.js +1 -3
  64. package/lib/module/utils/useDrawerStatus.js.map +1 -1
  65. package/lib/module/views/DrawerContent.js +0 -1
  66. package/lib/module/views/DrawerContent.js.map +1 -1
  67. package/lib/module/views/DrawerContentScrollView.js +0 -3
  68. package/lib/module/views/DrawerContentScrollView.js.map +1 -1
  69. package/lib/module/views/DrawerItem.js +8 -10
  70. package/lib/module/views/DrawerItem.js.map +1 -1
  71. package/lib/module/views/DrawerItemList.js +2 -5
  72. package/lib/module/views/DrawerItemList.js.map +1 -1
  73. package/lib/module/views/DrawerToggleButton.js +0 -1
  74. package/lib/module/views/DrawerToggleButton.js.map +1 -1
  75. package/lib/module/views/DrawerView.js +9 -35
  76. package/lib/module/views/DrawerView.js.map +1 -1
  77. package/lib/module/views/GestureHandler.android.js.map +1 -1
  78. package/lib/module/views/GestureHandler.ios.js.map +1 -1
  79. package/lib/module/views/GestureHandler.js +0 -2
  80. package/lib/module/views/GestureHandler.js.map +1 -1
  81. package/lib/module/views/GestureHandlerNative.js.map +1 -1
  82. package/lib/module/views/ScreenFallback.js +2 -10
  83. package/lib/module/views/ScreenFallback.js.map +1 -1
  84. package/lib/module/views/legacy/Drawer.js +62 -90
  85. package/lib/module/views/legacy/Drawer.js.map +1 -1
  86. package/lib/module/views/legacy/Overlay.js +3 -3
  87. package/lib/module/views/legacy/Overlay.js.map +1 -1
  88. package/lib/module/views/modern/Drawer.js +20 -27
  89. package/lib/module/views/modern/Drawer.js.map +1 -1
  90. package/lib/module/views/modern/Overlay.js +4 -3
  91. package/lib/module/views/modern/Overlay.js.map +1 -1
  92. package/lib/typescript/src/index.d.ts +2 -0
  93. package/lib/typescript/src/index.d.ts.map +1 -0
  94. package/lib/typescript/src/navigators/createDrawerNavigator.d.ts +1 -0
  95. package/lib/typescript/src/navigators/createDrawerNavigator.d.ts.map +1 -0
  96. package/lib/typescript/src/types.d.ts +1 -0
  97. package/lib/typescript/src/types.d.ts.map +1 -0
  98. package/lib/typescript/src/utils/DrawerGestureContext.d.ts +1 -0
  99. package/lib/typescript/src/utils/DrawerGestureContext.d.ts.map +1 -0
  100. package/lib/typescript/src/utils/DrawerPositionContext.d.ts +1 -0
  101. package/lib/typescript/src/utils/DrawerPositionContext.d.ts.map +1 -0
  102. package/lib/typescript/src/utils/DrawerProgressContext.d.ts +1 -0
  103. package/lib/typescript/src/utils/DrawerProgressContext.d.ts.map +1 -0
  104. package/lib/typescript/src/utils/DrawerStatusContext.d.ts +1 -0
  105. package/lib/typescript/src/utils/DrawerStatusContext.d.ts.map +1 -0
  106. package/lib/typescript/src/utils/getDrawerStatusFromState.d.ts +1 -0
  107. package/lib/typescript/src/utils/getDrawerStatusFromState.d.ts.map +1 -0
  108. package/lib/typescript/src/utils/useDrawerProgress.d.ts +1 -0
  109. package/lib/typescript/src/utils/useDrawerProgress.d.ts.map +1 -0
  110. package/lib/typescript/src/utils/useDrawerStatus.d.ts +1 -0
  111. package/lib/typescript/src/utils/useDrawerStatus.d.ts.map +1 -0
  112. package/lib/typescript/src/views/DrawerContent.d.ts +1 -0
  113. package/lib/typescript/src/views/DrawerContent.d.ts.map +1 -0
  114. package/lib/typescript/src/views/DrawerContentScrollView.d.ts +1 -0
  115. package/lib/typescript/src/views/DrawerContentScrollView.d.ts.map +1 -0
  116. package/lib/typescript/src/views/DrawerItem.d.ts +1 -0
  117. package/lib/typescript/src/views/DrawerItem.d.ts.map +1 -0
  118. package/lib/typescript/src/views/DrawerItemList.d.ts +1 -0
  119. package/lib/typescript/src/views/DrawerItemList.d.ts.map +1 -0
  120. package/lib/typescript/src/views/DrawerToggleButton.d.ts +1 -0
  121. package/lib/typescript/src/views/DrawerToggleButton.d.ts.map +1 -0
  122. package/lib/typescript/src/views/DrawerView.d.ts +1 -0
  123. package/lib/typescript/src/views/DrawerView.d.ts.map +1 -0
  124. package/lib/typescript/src/views/GestureHandler.android.d.ts +1 -0
  125. package/lib/typescript/src/views/GestureHandler.android.d.ts.map +1 -0
  126. package/lib/typescript/src/views/GestureHandler.d.ts +1 -0
  127. package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -0
  128. package/lib/typescript/src/views/GestureHandler.ios.d.ts +1 -0
  129. package/lib/typescript/src/views/GestureHandler.ios.d.ts.map +1 -0
  130. package/lib/typescript/src/views/GestureHandlerNative.d.ts +1 -0
  131. package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -0
  132. package/lib/typescript/src/views/ScreenFallback.d.ts +1 -0
  133. package/lib/typescript/src/views/ScreenFallback.d.ts.map +1 -0
  134. package/lib/typescript/src/views/legacy/Drawer.d.ts +1 -0
  135. package/lib/typescript/src/views/legacy/Drawer.d.ts.map +1 -0
  136. package/lib/typescript/src/views/legacy/Overlay.d.ts +1 -0
  137. package/lib/typescript/src/views/legacy/Overlay.d.ts.map +1 -0
  138. package/lib/typescript/src/views/modern/Drawer.d.ts +1 -0
  139. package/lib/typescript/src/views/modern/Drawer.d.ts.map +1 -0
  140. package/lib/typescript/src/views/modern/Overlay.d.ts +1 -0
  141. package/lib/typescript/src/views/modern/Overlay.d.ts.map +1 -0
  142. package/package.json +5 -5
  143. package/src/index.tsx +1 -0
  144. package/src/views/modern/Overlay.tsx +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-navigation/drawer",
3
3
  "description": "Drawer navigator component with animated transitions and gesturess",
4
- "version": "6.5.3",
4
+ "version": "6.5.5",
5
5
  "keywords": [
6
6
  "react-native-component",
7
7
  "react-component",
@@ -41,19 +41,19 @@
41
41
  "clean": "del lib"
42
42
  },
43
43
  "dependencies": {
44
- "@react-navigation/elements": "^1.3.9",
44
+ "@react-navigation/elements": "^1.3.11",
45
45
  "color": "^4.2.3",
46
46
  "warn-once": "^0.1.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@react-navigation/native": "^6.0.16",
49
+ "@react-navigation/native": "^6.1.1",
50
50
  "@testing-library/react-native": "^11.5.0",
51
51
  "@types/react": "~18.0.0",
52
52
  "@types/react-native": "~0.69.1",
53
53
  "del-cli": "^3.0.1",
54
54
  "react": "18.0.0",
55
55
  "react-native": "0.69.5",
56
- "react-native-builder-bob": "^0.18.1",
56
+ "react-native-builder-bob": "^0.20.3",
57
57
  "react-native-gesture-handler": "~2.5.0",
58
58
  "react-native-reanimated": "~2.9.1",
59
59
  "react-native-safe-area-context": "4.3.1",
@@ -83,5 +83,5 @@
83
83
  ]
84
84
  ]
85
85
  },
86
- "gitHead": "4e29403ec63d9304561e296667f6cf15806c316b"
86
+ "gitHead": "2b22d3ea9ca99bc298f4fb48ae9808b65aa25620"
87
87
  }
package/src/index.tsx CHANGED
@@ -18,6 +18,7 @@ export { default as DrawerView } from './views/DrawerView';
18
18
  */
19
19
  export { default as DrawerGestureContext } from './utils/DrawerGestureContext';
20
20
  export { default as DrawerProgressContext } from './utils/DrawerProgressContext';
21
+ export { default as DrawerStatusContext } from './utils/DrawerStatusContext';
21
22
  export { default as getDrawerStatusFromState } from './utils/getDrawerStatusFromState';
22
23
  export { default as useDrawerProgress } from './utils/useDrawerProgress';
23
24
  export { default as useDrawerStatus } from './utils/useDrawerStatus';
@@ -63,6 +63,7 @@ const styles = StyleSheet.create({
63
63
  },
64
64
  pressable: {
65
65
  flex: 1,
66
+ pointerEvents: 'auto',
66
67
  },
67
68
  });
68
69