UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

13 lines (12 loc) 452 B
import { BottomTabBarHeightContext } from "@react-navigation/bottom-tabs"; import React from "react"; import { View } from "react-native-web"; import { SafeAreaView } from "react-native-safe-area-context"; function ErrorBoundary({ error, retry }) { const Wrapper = React.useContext(BottomTabBarHeightContext) ? View : SafeAreaView; return console.error("error", error), null; } export { ErrorBoundary }; //# sourceMappingURL=ErrorBoundary.js.map