25 lines
644 B
JavaScript
25 lines
644 B
JavaScript
// Module ID: 1532
|
|
// Function ID: 1533
|
|
// Name: useNavigation
|
|
// Dependencies: [19, 1503, 1508]
|
|
// Exports: default
|
|
|
|
// Module 1532 (useNavigation)
|
|
import noop from "noop";
|
|
|
|
|
|
export default function useNavigation() {
|
|
const context = React.useContext(importDefault(1503));
|
|
let context1 = React.useContext(importDefault(1508));
|
|
if (undefined === context1) {
|
|
if (undefined === context) {
|
|
const _Error = Error;
|
|
const error = new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
|
|
throw error;
|
|
}
|
|
}
|
|
if (context1 == null) {
|
|
context1 = context;
|
|
}
|
|
return context1;
|
|
};
|