import * as React from "react"; import { pathOr } from "ramda"; import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks"; import { ScreenLayoutContextProvider } from "./ScreenLayoutContextProvider"; import { StackNavigator } from "../../Navigator"; type Components = { NavBar: React.ComponentType; Background: React.ComponentType; }; type Props = { Components: Components; }; const Layout = ({ Components }: Props) => { const { appState } = usePickFromState(["appState"]); const appReady = pathOr(false, ["appReady"], appState); if (!appReady) { return null; } return ( ); }; export default Layout;