Setup

Install the two navigation packages from npm.

npm install navigation navigation-react

Replace the code in index.js (or equivalent) with the following:

import {createRoot} from 'react-dom/client';
import {StateNavigator} from 'navigation';
import {NavigationHandler} from 'navigation-react';

const stateNavigator = new StateNavigator([
]);

stateNavigator.start();

const App = () => (
  <NavigationHandler stateNavigator={stateNavigator}>
  </NavigationHandler>  
);

const rootElement = document.getElementById('root');
const root = createRoot(rootElement);

root.render(<App />);