react-native-drawer-layout 5.0.0-alpha.2 → 5.0.0-alpha.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.
@@ -3,7 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { DrawerProgressContext } from "./DrawerProgressContext.js";
5
5
  export function useDrawerProgress() {
6
- const progress = React.useContext(DrawerProgressContext);
6
+ const progress = React.use(DrawerProgressContext);
7
7
  if (progress === undefined) {
8
8
  throw new Error("Couldn't find a drawer. Is your component inside a drawer?");
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","DrawerProgressContext","useDrawerProgress","progress","useContext","undefined","Error"],"sourceRoot":"../../../src","sources":["utils/useDrawerProgress.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,qBAAqB,QAAQ,4BAAyB;AAE/D,OAAO,SAASC,iBAAiBA,CAAA,EAAkC;EACjE,MAAMC,QAAQ,GAAGH,KAAK,CAACI,UAAU,CAACH,qBAAqB,CAAC;EAExD,IAAIE,QAAQ,KAAKE,SAAS,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,4DACF,CAAC;EACH;EAEA,OAAOH,QAAQ;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["React","DrawerProgressContext","useDrawerProgress","progress","use","undefined","Error"],"sourceRoot":"../../../src","sources":["utils/useDrawerProgress.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,qBAAqB,QAAQ,4BAAyB;AAE/D,OAAO,SAASC,iBAAiBA,CAAA,EAAkC;EACjE,MAAMC,QAAQ,GAAGH,KAAK,CAACI,GAAG,CAACH,qBAAqB,CAAC;EAEjD,IAAIE,QAAQ,KAAKE,SAAS,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,4DACF,CAAC;EACH;EAEA,OAAOH,QAAQ;AACjB","ignoreList":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-drawer-layout",
3
3
  "description": "Drawer component for React Native",
4
- "version": "5.0.0-alpha.2",
4
+ "version": "5.0.0-alpha.3",
5
5
  "keywords": [
6
6
  "react-native-component",
7
7
  "react-component",
@@ -55,7 +55,7 @@
55
55
  "typescript": "^5.9.2"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": ">= 19.0.0",
58
+ "react": ">= 19.2.0",
59
59
  "react-native": "*",
60
60
  "react-native-gesture-handler": ">= 2.0.0",
61
61
  "react-native-reanimated": ">= 4.0.0"
@@ -78,5 +78,5 @@
78
78
  ]
79
79
  ]
80
80
  },
81
- "gitHead": "4ac6c41c1f751fba9dd82db050865bc71f3310f5"
81
+ "gitHead": "1f1525607d00eb924e466889ec0e703a3f5474b7"
82
82
  }
@@ -4,7 +4,7 @@ import type { SharedValue } from 'react-native-reanimated';
4
4
  import { DrawerProgressContext } from './DrawerProgressContext';
5
5
 
6
6
  export function useDrawerProgress(): Readonly<SharedValue<number>> {
7
- const progress = React.useContext(DrawerProgressContext);
7
+ const progress = React.use(DrawerProgressContext);
8
8
 
9
9
  if (progress === undefined) {
10
10
  throw new Error(