--- title: NativeRouter --- # ``
Type declaration ```tsx declare function NativeRouter( props: NativeRouterProps ): React.ReactElement; interface NativeRouterProps extends MemoryRouterProps {} ```
`` is the recommended interface for running React Router in a [React Native][react-native] app. - `` defaults to `["/"]` (a single entry at the root `/` URL) - `` defaults to the last index of `initialEntries` ```tsx import * as React from "react"; import { NativeRouter } from "react-router-native"; function App() { return ( {/* The rest of your app goes here */} ); } ``` [react-native]: https://reactnative.dev