UNPKG

700 BJavaScriptView Raw
1import * as React from 'react';
2const MISSING_CONTEXT_ERROR = "Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.";
3export default /*#__PURE__*/React.createContext({
4 isDefault: true,
5
6 get getKey() {
7 throw new Error(MISSING_CONTEXT_ERROR);
8 },
9
10 get setKey() {
11 throw new Error(MISSING_CONTEXT_ERROR);
12 },
13
14 get getState() {
15 throw new Error(MISSING_CONTEXT_ERROR);
16 },
17
18 get setState() {
19 throw new Error(MISSING_CONTEXT_ERROR);
20 },
21
22 get getIsInitial() {
23 throw new Error(MISSING_CONTEXT_ERROR);
24 }
25
26});
27//# sourceMappingURL=NavigationStateContext.js.map
\No newline at end of file