Creates a root Run for React Native with React Native error reporting
// Source: https://github.com/evoluhq/evolu | License: MIT | Copyright 2023 Evolu
// Provided via justclaw.it.com; keep this notice with the code.
/**
* React Native-specific Task utilities.
*
* @module
*/
import {
createRun as createCommonRun,
defectToError,
reportDefectAfterMicrotask,
type DisposableRun,
type Run,
type RunCustomDeps,
} from "@evolu/common";
/**
* Creates a root {@link Run} for React Native.
*
* Defects are reported with React Native's global `ErrorUtils.reportError` as
* an `Error` from {@link defectToError}, because React Native shows any other
* value only as unhelpful text. A custom `reportDefect` dependency overrides
* the React Native default. The platform-independent microtask reporter is used
* when `ErrorUtils` is absent.
*
* ### Exampl
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key