79229202

Date: 2024-11-27 06:50:35
Score: 1.5
Natty:
Report link

To me, I needed to initialize the ExpoRoot of expo-router in index.js, like that:

import { registerRootComponent } from "expo";
import { ExpoRoot } from "expo-router";

function App() {
  const ctx = require.context("./app");
  return <ExpoRoot context={ctx} />;
}

registerRootComponent(App);
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Fabio Mariano