React Native API
clearCrashHistory
Clears the crash history to allow retrying previously failed bundles.
Usage
Use clearCrashHistory() to reset the crash history and allow redeploying bundles that previously crashed.
import { HotUpdater } from "@hot-updater/react-native";
function AdminPanel() {
const handleClearHistory = () => {
const result = HotUpdater.clearCrashHistory();
if (result) {
console.log("Crash history cleared successfully");
} else {
console.log("Failed to clear crash history");
}
};
return (
<View>
<Button title="Clear Crash History" onPress={handleClearHistory} />
</View>
);
}
export default HotUpdater.wrap(AdminPanel);Return Value
Returns a boolean indicating success.
clearCrashHistory(): booleantrue- Crash history cleared successfullyfalse- Failed to clear crash history