UNPKG

@applicaster/zapp-react-dom-app

Version:

Zapp App Component for Applicaster's Quick Brick React Native App

19 lines (13 loc) 347 B
// @flow import React from "react"; import { Router } from "react-router"; import { createMemoryHistory } from "history"; type Props = { children: any; }; const history = createMemoryHistory(); export const ZappDomRouter = ({ children, ...otherProps }: Props) => ( <Router history={history} {...otherProps}> {children} </Router> );