Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 4a62a0b

Browse files
jpaasAshoat
authored andcommitted
Fixes ability to use with react-navigation 3.0 for web (#74)
* Changes imports to use @react-navigation/core * Also changes peer dependency to @react-navigation/core
1 parent ab3f68e commit 4a62a0b

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare module 'react-navigation-redux-helpers' {
66
NavigationState,
77
NavigationDispatch,
88
NavigationScreenProp
9-
} from 'react-navigation';
9+
} from '@react-navigation/core';
1010
import * as React from 'react';
1111
import { Middleware, Reducer } from 'redux';
1212

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"index.d.ts"
2222
],
2323
"peerDependencies": {
24+
"@react-navigation/core": "*",
2425
"react": "*",
25-
"react-navigation": "*",
2626
"redux": "*"
2727
}
2828
}

src/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
type NavigationScreenProp,
99
type NavigationRouter,
1010
getNavigation,
11-
} from 'react-navigation';
11+
} from '@react-navigation/core';
1212
import type { Middleware } from 'redux';
1313

1414
import invariant from 'invariant';

src/reducer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// @flow
22

3-
import type { NavigationAction, NavigationState } from 'react-navigation';
3+
import type { NavigationAction, NavigationState } from '@react-navigation/core';
44
import type { Reducer } from 'redux';
55
import type { Navigator, ReducerState } from './types'
66

7-
import { NavigationActions } from "react-navigation";
7+
import { NavigationActions } from "@react-navigation/core";
88

99
const initAction = NavigationActions.init();
1010

src/reduxify-navigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
NavigationDispatch,
66
NavigationContainer,
77
NavigationScreenProp,
8-
} from 'react-navigation';
8+
} from '@react-navigation/core';
99

1010
import * as React from 'react';
1111

src/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import type { NavigationContainer, NavigationState } from 'react-navigation';
3+
import type { NavigationContainer, NavigationState } from '@react-navigation/core';
44

55
export type Navigator = NavigationContainer<*, *, *>;
66
export type ReducerState = ?NavigationState;

0 commit comments

Comments
 (0)