@umituz/react-native-sound 1.2.1 → 1.2.2
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/package.json
CHANGED
|
@@ -58,6 +58,10 @@ export function useSoundCache(): UseSoundCacheResult {
|
|
|
58
58
|
}
|
|
59
59
|
}, []);
|
|
60
60
|
|
|
61
|
+
const getCacheSize = useCallback(async (): Promise<number> => {
|
|
62
|
+
return soundCacheService.getCacheSize();
|
|
63
|
+
}, []);
|
|
64
|
+
|
|
61
65
|
const isCached = useCallback(
|
|
62
66
|
async (sound: Sound): Promise<boolean> => {
|
|
63
67
|
if (!sound.filename) {
|
|
@@ -99,7 +103,7 @@ export function useSoundCache(): UseSoundCacheResult {
|
|
|
99
103
|
isCached,
|
|
100
104
|
getCachedUri,
|
|
101
105
|
clearCache,
|
|
102
|
-
getCacheSize
|
|
106
|
+
getCacheSize,
|
|
103
107
|
deleteCachedSound,
|
|
104
108
|
cacheSize,
|
|
105
109
|
isLoadingCacheSize,
|