Skip to content
Source
Sign inSign up

index.ts

20 lines809 Bytes

1// Must stay first: the render counter and behavior probe wrap the DevTools hook before any React commit.
2import "./src/features/development/render-counter-entry";
3import "./src/features/development/behavior-probe-entry";
4// Next, so errors thrown while the rest of the app loads are recorded too.
5import "./src/features/observability/observe";
6import { registerRootComponent } from "expo";
7import "react-native-gesture-handler";
8import { LogBox } from "react-native";
9import { featureFlags } from "react-native-screens";
10​
11import App from "./src/App";
12​
13// Enables iOS FormSheet sizing for nested native stacks in non-fitToContents sheets.
14featureFlags.experiment.synchronousScreenUpdatesEnabled = true;
15​
16if (process.env.EXPO_PUBLIC_SHOWCASE === "1") {
17 LogBox.ignoreAllLogs();
19​
20registerRootComponent(App);