@@ -142,7 +142,7 @@ cache.events.on('poll:complete', (event) => {
142142For React Native UIs, use the built-in hook:
143143
144144``` ts
145- import { useCacheStatus } from ' zephyr-native-cache/react ' ;
145+ import { useCacheStatus } from ' zephyr-native-cache' ;
146146
147147export function CacheStatusPanel() {
148148 const { status, latestUpdateEvent } = useCacheStatus ();
@@ -158,8 +158,7 @@ Use `latestUpdateEvent` as a raw signal to display your own update banner, toast
158158
159159``` tsx
160160import { Button , Text , View } from ' react-native' ;
161- import { ZephyrNativeCache } from ' zephyr-native-cache' ;
162- import { useCacheStatus } from ' zephyr-native-cache/react' ;
161+ import ZephyrNativeCache , { useCacheStatus } from ' zephyr-native-cache' ;
163162
164163export function UpdateBanner() {
165164 const { latestUpdateEvent } = useCacheStatus ();
@@ -181,8 +180,7 @@ Use the facade for manual update checks and cache invalidation. These calls are
181180
182181``` tsx
183182import { Button , View } from ' react-native' ;
184- import { ZephyrNativeCache } from ' zephyr-native-cache' ;
185- import { useCacheStatus } from ' zephyr-native-cache/react' ;
183+ import ZephyrNativeCache , { useCacheStatus } from ' zephyr-native-cache' ;
186184
187185export function CacheControls() {
188186 const { status } = useCacheStatus ();
@@ -215,7 +213,7 @@ The status snapshot contains enough state to show polling progress, last-check r
215213
216214``` tsx
217215import { Text , View } from ' react-native' ;
218- import { useCacheStatus } from ' zephyr-native-cache/react ' ;
216+ import { useCacheStatus } from ' zephyr-native-cache' ;
219217
220218export function CacheDiagnostics() {
221219 const { status } = useCacheStatus ();
@@ -243,8 +241,7 @@ You can map `status.remotes` into source badges so operators can see whether eac
243241
244242``` tsx
245243import { Text } from ' react-native' ;
246- import type { CacheStatusRemoteEntry } from ' zephyr-native-cache' ;
247- import { useCacheStatus } from ' zephyr-native-cache/react' ;
244+ import { useCacheStatus , type CacheStatusRemoteEntry } from ' zephyr-native-cache' ;
248245
249246const SOURCE_LABELS: Record <string , string > = {
250247 ' cache-hit' : ' from cache' ,
0 commit comments