AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
/**
* Expo DOM imperative methods (`focusEnd`, `setContent`, `flush`, …) bridge through
* `DomWebView.injectJavaScript`. After the native view unmounts, those calls reject with:
*
* Unable to find the class expo.modules.webview.DomWebView view with tag N
*
* That rejection surfaces as the red "Uncaught (in promise)" toast in dev. Swallow it —
* the host screen has already left the editor.
*/
export const safeDomCall = (invoke: () => unknown): void => {
try {
const result = invoke();
if (result != null && typeof (result as Promise<unknown>).then === "function") {
void (result as Promise<unknown>).catch(() => undefined);
}
} catch {
// Synchronous bridge failures (rare) — ignore.
}
};