@react-navigation/core
Version:
Core utilities for building navigators
10 lines • 405 B
JavaScript
import * as React from 'react';
import PreventRemoveContext from './PreventRemoveContext';
export default function usePreventRemoveContext() {
const value = React.useContext(PreventRemoveContext);
if (value == null) {
throw new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");
}
return value;
}
//# sourceMappingURL=usePreventRemoveContext.js.map