useWidgetExpiryEffect
useWidgetExpiryEffect
hook runs a timer to update widget UI phase to EXPIRED
once the expiry time has passed. Expiry time is set when creating widget from producer suite.
Hook Type Definition: useWidgetExpiryEffect
Example Usage:
import { useWidgetExpiryEffect } from "@livelike/react-native"
const widgetId = "xxx-yyyy-zzz"
useWidgetExpiryEffect({ widgetId });
Updated 12 months ago