@rific/drawer 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -3
- package/src/Drawer.tsx +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npm install @rific/drawer
|
|
|
11
11
|
**Peer dependencies:**
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npm install react-native-gesture-handler react-native-reanimated react-native-paper
|
|
14
|
+
npm install react-native-gesture-handler react-native-reanimated react-native-paper
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Your app's root must already be wrapped in `GestureHandlerRootView` (from `react-native-gesture-handler`). This package doesn't add its own, since only one should ever wrap the whole app.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rific/drawer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Left/right sliding drawer with edge-swipe gestures for React Native: spring-animated, theme-aware, one factory call per drawer instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@rific/auto-paper": "^0.7.0",
|
|
64
|
-
"@rific/haptic-press": "^0.4.3",
|
|
65
64
|
"@testing-library/dom": "^10.4.1",
|
|
66
65
|
"@testing-library/react": "^16.3.2",
|
|
67
66
|
"@types/jest": "^30.0.0",
|
|
@@ -91,7 +90,6 @@
|
|
|
91
90
|
},
|
|
92
91
|
"peerDependencies": {
|
|
93
92
|
"@rific/auto-paper": ">=0.7.0",
|
|
94
|
-
"@rific/haptic-press": ">=0.4.0",
|
|
95
93
|
"react": ">=19.0.0",
|
|
96
94
|
"react-native": ">=0.83.0",
|
|
97
95
|
"react-native-gesture-handler": ">=2.20.0 <3.0.0",
|
package/src/Drawer.tsx
CHANGED
|
@@ -324,7 +324,7 @@ export const Drawer = ({ backdropOpacity = 0.45, blockingBackdrop = true, blur,
|
|
|
324
324
|
// needs to offset from wherever the panel actually was, not always from rest.
|
|
325
325
|
const gestureStartOffset = useSharedValue(closedOffset)
|
|
326
326
|
|
|
327
|
-
// react-native-gesture-handler's own Tap, not @rific/
|
|
327
|
+
// react-native-gesture-handler's own Tap, not @rific/feedback-press's plain-RN Pressable: this
|
|
328
328
|
// sits in the same GestureDetector-based system as the panel's own drag handle below, rather
|
|
329
329
|
// than mixing RNGH's native recognizers with RN's separate classic responder system on the one
|
|
330
330
|
// view in the tree (the backdrop) that most needs to reliably win a touch over whatever's behind
|