usePredictionClaimRewardEffect

usePredictionClaimRewardEffect hook claims the prediction reward whenever a prediction follow up based UI is rendered. Internally it calls claimPredictionWidgetRewards JS API.

Hook Type Definition: usePredictionClaimRewardEffect

Example Usage:
import { usePredictionClaimRewardEffect } from "@livelike/react-native"
import { WidgetKind } from "@livelike/javascript"

const widgetId = "xxx-yyyy-zzz"
const widgetKind = WidgetKind.IMAGE_PREDICTION_FOLLOW_UP

usePredictionClaimRewardEffect({ widgetId, widgetKind });