@akbeniwal/react-native-hooks 1.0.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.
- package/README.md +235 -0
- package/dist/hooks/useAfterInteractions.d.ts +10 -0
- package/dist/hooks/useAfterInteractions.d.ts.map +1 -0
- package/dist/hooks/useAfterInteractions.js +28 -0
- package/dist/hooks/useAfterInteractions.js.map +1 -0
- package/dist/hooks/useAppState.d.ts +17 -0
- package/dist/hooks/useAppState.d.ts.map +1 -0
- package/dist/hooks/useAppState.js +36 -0
- package/dist/hooks/useAppState.js.map +1 -0
- package/dist/hooks/useBackHandler.d.ts +7 -0
- package/dist/hooks/useBackHandler.d.ts.map +1 -0
- package/dist/hooks/useBackHandler.js +21 -0
- package/dist/hooks/useBackHandler.js.map +1 -0
- package/dist/hooks/useClipboard.d.ts +19 -0
- package/dist/hooks/useClipboard.d.ts.map +1 -0
- package/dist/hooks/useClipboard.js +44 -0
- package/dist/hooks/useClipboard.js.map +1 -0
- package/dist/hooks/useCountdown.d.ts +24 -0
- package/dist/hooks/useCountdown.d.ts.map +1 -0
- package/dist/hooks/useCountdown.js +67 -0
- package/dist/hooks/useCountdown.js.map +1 -0
- package/dist/hooks/useDebounce.d.ts +12 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDebounce.js +29 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useDeviceOrientation.d.ts +10 -0
- package/dist/hooks/useDeviceOrientation.d.ts.map +1 -0
- package/dist/hooks/useDeviceOrientation.js +33 -0
- package/dist/hooks/useDeviceOrientation.js.map +1 -0
- package/dist/hooks/useDoubleTapToExit.d.ts +17 -0
- package/dist/hooks/useDoubleTapToExit.d.ts.map +1 -0
- package/dist/hooks/useDoubleTapToExit.js +40 -0
- package/dist/hooks/useDoubleTapToExit.js.map +1 -0
- package/dist/hooks/useInterval.d.ts +10 -0
- package/dist/hooks/useInterval.d.ts.map +1 -0
- package/dist/hooks/useInterval.js +27 -0
- package/dist/hooks/useInterval.js.map +1 -0
- package/dist/hooks/useKeyboard.d.ts +23 -0
- package/dist/hooks/useKeyboard.d.ts.map +1 -0
- package/dist/hooks/useKeyboard.js +46 -0
- package/dist/hooks/useKeyboard.js.map +1 -0
- package/dist/hooks/useLayout.d.ts +19 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useLayout.js +29 -0
- package/dist/hooks/useLayout.js.map +1 -0
- package/dist/hooks/useNetworkStatus.d.ts +45 -0
- package/dist/hooks/useNetworkStatus.d.ts.map +1 -0
- package/dist/hooks/useNetworkStatus.js +184 -0
- package/dist/hooks/useNetworkStatus.js.map +1 -0
- package/dist/hooks/usePrevious.d.ts +9 -0
- package/dist/hooks/usePrevious.d.ts.map +1 -0
- package/dist/hooks/usePrevious.js +16 -0
- package/dist/hooks/usePrevious.js.map +1 -0
- package/dist/hooks/useThrottle.d.ts +12 -0
- package/dist/hooks/useThrottle.d.ts.map +1 -0
- package/dist/hooks/useThrottle.js +47 -0
- package/dist/hooks/useThrottle.js.map +1 -0
- package/dist/hooks/useTimeout.d.ts +10 -0
- package/dist/hooks/useTimeout.d.ts.map +1 -0
- package/dist/hooks/useTimeout.js +27 -0
- package/dist/hooks/useTimeout.js.map +1 -0
- package/dist/hooks/useToggle.d.ts +19 -0
- package/dist/hooks/useToggle.d.ts.map +1 -0
- package/dist/hooks/useToggle.js +38 -0
- package/dist/hooks/useToggle.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThrottle.js","sourceRoot":"","sources":["../../src/hooks/useThrottle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CACzB,KAAQ,EACR,KAAa,EACb,QAA6B;IAE7B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAI,KAAK,CAAC,CAAC;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAS,CAAC,CAAC,CAAC;IAClC,MAAM,UAAU,GAAG,MAAM,CAAuC,IAAI,CAAC,CAAC;IAEtE,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IAE/B,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,aAAa,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,CAAC,GAAM,EAAE,EAAE;YAC7B,iBAAiB,CAAC,GAAG,CAAC,CAAC;YACvB,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7B,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;gBACxB,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;QAEF,IAAI,aAAa,IAAI,CAAC,EAAE,CAAC;YACvB,WAAW,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;aAAM,CAAC;YACN,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;gBACvB,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACnC,CAAC;YAED,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;gBACnC,WAAW,CAAC,KAAK,CAAC,CAAC;YACrB,CAAC,EAAE,aAAa,CAAC,CAAC;QACpB,CAAC;QAED,OAAO,GAAG,EAAE;YACV,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;gBACvB,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACnC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IAEnB,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A declarative React hook wrapper for `setTimeout`.
|
|
3
|
+
* Automatically clears the timeout on unmount, handles dynamically changing callbacks,
|
|
4
|
+
* and allows canceling the timeout by passing `null` as the delay.
|
|
5
|
+
*
|
|
6
|
+
* @param callback The function to execute after the delay
|
|
7
|
+
* @param delay The delay timing in milliseconds. Pass `null` to cancel/stop the timeout.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useTimeout(callback: () => void, delay: number | null): void;
|
|
10
|
+
//# sourceMappingURL=useTimeout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeout.d.ts","sourceRoot":"","sources":["../../src/hooks/useTimeout.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAmB3E"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A declarative React hook wrapper for `setTimeout`.
|
|
4
|
+
* Automatically clears the timeout on unmount, handles dynamically changing callbacks,
|
|
5
|
+
* and allows canceling the timeout by passing `null` as the delay.
|
|
6
|
+
*
|
|
7
|
+
* @param callback The function to execute after the delay
|
|
8
|
+
* @param delay The delay timing in milliseconds. Pass `null` to cancel/stop the timeout.
|
|
9
|
+
*/
|
|
10
|
+
export function useTimeout(callback, delay) {
|
|
11
|
+
const savedCallback = useRef(callback);
|
|
12
|
+
// Keep track of the latest callback.
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
savedCallback.current = callback;
|
|
15
|
+
}, [callback]);
|
|
16
|
+
// Set up the timeout.
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (delay === null)
|
|
19
|
+
return;
|
|
20
|
+
const tick = () => {
|
|
21
|
+
savedCallback.current();
|
|
22
|
+
};
|
|
23
|
+
const id = setTimeout(tick, delay);
|
|
24
|
+
return () => clearTimeout(id);
|
|
25
|
+
}, [delay]);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=useTimeout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeout.js","sourceRoot":"","sources":["../../src/hooks/useTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,QAAoB,EAAE,KAAoB;IACnE,MAAM,aAAa,GAAG,MAAM,CAAa,QAAQ,CAAC,CAAC;IAEnD,qCAAqC;IACrC,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,OAAO,GAAG,QAAQ,CAAC;IACnC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,sBAAsB;IACtB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO;QAE3B,MAAM,IAAI,GAAG,GAAS,EAAE;YACtB,aAAa,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAC;QAEF,MAAM,EAAE,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnC,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface UseToggleOptions {
|
|
2
|
+
/** Callback triggered when the boolean state changes */
|
|
3
|
+
onChange?: (value: boolean) => void;
|
|
4
|
+
/** Callback triggered when the state becomes true */
|
|
5
|
+
onTrue?: () => void;
|
|
6
|
+
/** Callback triggered when the state becomes false */
|
|
7
|
+
onFalse?: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A custom React hook to manage and toggle a boolean state.
|
|
11
|
+
*
|
|
12
|
+
* @param initialValue The initial boolean state (defaults to `false`)
|
|
13
|
+
* @param options Optional callbacks for toggling transitions
|
|
14
|
+
* @returns A read-only tuple containing:
|
|
15
|
+
* - `value`: The current boolean state.
|
|
16
|
+
* - `toggle`: A memoized function to toggle the state or set it to a specific boolean value.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useToggle(initialValue?: boolean, options?: UseToggleOptions): readonly [boolean, (valueOrEvent?: unknown) => void];
|
|
19
|
+
//# sourceMappingURL=useToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,YAAY,GAAE,OAAe,EAC7B,OAAO,CAAC,EAAE,gBAAgB,GACzB,SAAS,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC,CA6BtD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useState, useCallback, useRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A custom React hook to manage and toggle a boolean state.
|
|
4
|
+
*
|
|
5
|
+
* @param initialValue The initial boolean state (defaults to `false`)
|
|
6
|
+
* @param options Optional callbacks for toggling transitions
|
|
7
|
+
* @returns A read-only tuple containing:
|
|
8
|
+
* - `value`: The current boolean state.
|
|
9
|
+
* - `toggle`: A memoized function to toggle the state or set it to a specific boolean value.
|
|
10
|
+
*/
|
|
11
|
+
export function useToggle(initialValue = false, options) {
|
|
12
|
+
const [value, setValue] = useState(initialValue);
|
|
13
|
+
const optionsRef = useRef(options);
|
|
14
|
+
optionsRef.current = options;
|
|
15
|
+
const toggle = useCallback((valueOrEvent) => {
|
|
16
|
+
setValue((currentVal) => {
|
|
17
|
+
let nextVal;
|
|
18
|
+
if (typeof valueOrEvent === 'boolean') {
|
|
19
|
+
nextVal = valueOrEvent;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
nextVal = !currentVal;
|
|
23
|
+
}
|
|
24
|
+
if (nextVal !== currentVal) {
|
|
25
|
+
optionsRef.current?.onChange?.(nextVal);
|
|
26
|
+
if (nextVal) {
|
|
27
|
+
optionsRef.current?.onTrue?.();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
optionsRef.current?.onFalse?.();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return nextVal;
|
|
34
|
+
});
|
|
35
|
+
}, []);
|
|
36
|
+
return [value, toggle];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=useToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useToggle.js","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAWtD;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CACvB,eAAwB,KAAK,EAC7B,OAA0B;IAE1B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAU,YAAY,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;IAE7B,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,YAAsB,EAAQ,EAAE;QAC1D,QAAQ,CAAC,CAAC,UAAU,EAAE,EAAE;YACtB,IAAI,OAAgB,CAAC;YACrB,IAAI,OAAO,YAAY,KAAK,SAAS,EAAE,CAAC;gBACtC,OAAO,GAAG,YAAY,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACN,OAAO,GAAG,CAAC,UAAU,CAAC;YACxB,CAAC;YAED,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;gBAC3B,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC;gBACxC,IAAI,OAAO,EAAE,CAAC;oBACZ,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;gBACjC,CAAC;qBAAM,CAAC;oBACN,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC;gBAClC,CAAC;YACH,CAAC;YAED,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CAAC,KAAK,EAAE,MAAM,CAAU,CAAC;AAClC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './hooks/useAppState';
|
|
2
|
+
export * from './hooks/useBackHandler';
|
|
3
|
+
export * from './hooks/useClipboard';
|
|
4
|
+
export * from './hooks/useCountdown';
|
|
5
|
+
export * from './hooks/useDebounce';
|
|
6
|
+
export * from './hooks/useKeyboard';
|
|
7
|
+
export * from './hooks/useNetworkStatus';
|
|
8
|
+
export * from './hooks/usePrevious';
|
|
9
|
+
export * from './hooks/useThrottle';
|
|
10
|
+
export * from './hooks/useToggle';
|
|
11
|
+
export * from './hooks/useAfterInteractions';
|
|
12
|
+
export * from './hooks/useLayout';
|
|
13
|
+
export * from './hooks/useDoubleTapToExit';
|
|
14
|
+
export * from './hooks/useDeviceOrientation';
|
|
15
|
+
export * from './hooks/useInterval';
|
|
16
|
+
export * from './hooks/useTimeout';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './hooks/useAppState';
|
|
2
|
+
export * from './hooks/useBackHandler';
|
|
3
|
+
export * from './hooks/useClipboard';
|
|
4
|
+
export * from './hooks/useCountdown';
|
|
5
|
+
export * from './hooks/useDebounce';
|
|
6
|
+
export * from './hooks/useKeyboard';
|
|
7
|
+
export * from './hooks/useNetworkStatus';
|
|
8
|
+
export * from './hooks/usePrevious';
|
|
9
|
+
export * from './hooks/useThrottle';
|
|
10
|
+
export * from './hooks/useToggle';
|
|
11
|
+
export * from './hooks/useAfterInteractions';
|
|
12
|
+
export * from './hooks/useLayout';
|
|
13
|
+
export * from './hooks/useDoubleTapToExit';
|
|
14
|
+
export * from './hooks/useDeviceOrientation';
|
|
15
|
+
export * from './hooks/useInterval';
|
|
16
|
+
export * from './hooks/useTimeout';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@akbeniwal/react-native-hooks",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A high-performance collection of React Native hooks optimized for performance, memory safety and developer experience.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react-native",
|
|
14
|
+
"hooks",
|
|
15
|
+
"react-hooks",
|
|
16
|
+
"useappstate",
|
|
17
|
+
"usekeyboard",
|
|
18
|
+
"usenetworkstatus",
|
|
19
|
+
"usedebounce",
|
|
20
|
+
"usethrottle",
|
|
21
|
+
"usecountdown",
|
|
22
|
+
"react-native-hooks"
|
|
23
|
+
],
|
|
24
|
+
"author": "Abhishek Beniwal",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"homepage": "https://github.com/AKBeniwal1700/react-native-hooks#readme",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/AKBeniwal1700/react-native-hooks.git"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/AKBeniwal1700/react-native-hooks/issues"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc",
|
|
36
|
+
"prepare": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=18.0.0",
|
|
40
|
+
"react-native": ">=0.72.0"
|
|
41
|
+
},
|
|
42
|
+
"optionalDependencies": {
|
|
43
|
+
"@react-native-clipboard/clipboard": "^1.16.3"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@react-native-clipboard/clipboard": "^1.16.3",
|
|
47
|
+
"@types/react": "^19.2.16",
|
|
48
|
+
"react": "^19.2.7",
|
|
49
|
+
"react-native": "^0.85.3",
|
|
50
|
+
"typescript": "^6.0.3"
|
|
51
|
+
}
|
|
52
|
+
}
|