HotupdaterHot Updater
React Native API

resetChannel

The `HotUpdater.resetChannel()` function clears the runtime channel switch and restores the original bundle.

Usage

Use HotUpdater.resetChannel() when you want to leave a runtime channel switch and go back to the app's original build-time channel.

import { HotUpdater } from "@hot-updater/react-native";

async function handleResetChannel() {
  await HotUpdater.resetChannel();
  await HotUpdater.reload();
}

Behavior

  • Clears the runtime channel switch
  • Restores the original bundle selection
  • Makes the build-time default channel active again after reload
  • Returns true even when no runtime channel switch is active
  • Performs no work when HotUpdater.isChannelSwitched() is already false

Example

if (HotUpdater.isChannelSwitched()) {
  await HotUpdater.resetChannel();
  await HotUpdater.reload();
}

When to Use

  • Leave a beta or staging runtime channel switch
  • Add a "Return to default channel" action in a debug or settings screen
  • Recover to the original shipped bundle after testing another channel