1 | import * as React from 'react';
|
2 | const 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.";
|
3 | export default 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 |
|
\ | No newline at end of file |