Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 460 Bytes

File metadata and controls

24 lines (18 loc) · 460 Bytes

react-native-app-helpers/Route

A React component which can be used to render a route.

Usage

import type { Route } from "react-native-app-helpers";

type Parameters = {
  parameterKey: `Parameter Value`,
};

type OtherProps = {
  otherPropKey: `Other Prop Value`,
};

const route: Route<Parameters, OtherProps> = ({
  routeState: { key, parameters },
  otherPropKey,
}) => <React.Fragment>
  {/* Your view goes here. */}
</React.Fragment>;