Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/mobile/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// Must stay first: the render counter and behavior probe wrap the DevTools hook before any React commit.
import "./src/features/development/render-counter-entry";
import "./src/features/development/behavior-probe-entry";
// Before any GT module initializes: GT captures Intl when it loads and validates locales with
// APIs Hermes lacks. observe.ts can load GT through the persistence graph.
import "./src/i18n/intl-polyfills";
// Next, so errors thrown while the rest of the app loads are recorded too.
import "./src/features/observability/observe";
import { registerRootComponent } from "expo";
import "react-native-gesture-handler";
import { LogBox } from "react-native";
import { featureFlags } from "react-native-screens";

// Before any GT module initializes: GT validates locales with Intl APIs that Hermes lacks.
import "./src/i18n/intl-polyfills";
import App from "./src/App";

// Enables iOS FormSheet sizing for nested native stacks in non-fitToContents sheets.
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/features/observability/observe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ if (!crashReportingAvailable) {
void setCrashReportsEnabled(false);
} else {
// Observe keeps its last configuration across launches; configuring it off while the setting
// loads would drop the last session's native crash. Imported lazily so the persistence graph
// never runs ahead of the imports `index.ts` orders first.
// loads would drop the last session's native crash. Release builds have no split bundles, so
// Metro evaluates this import synchronously, ahead of the rest of `index.ts`.
const changedSinceLoad = () => latestConfiguration !== 0;
void import("../../persistence/imperative")
.then(({ loadPreferences }) => loadPreferences())
Expand Down
Loading