Skip to content

Commit 34b5eab

Browse files
committed
Set navigation container every time
1 parent cc3c19a commit 34b5eab

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-navigation-extension",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Convenient navigation service with using refs on navigators",
55
"main": "src.ts",
66
"scripts": {
@@ -18,7 +18,7 @@
1818
"extension",
1919
"refs",
2020
"performance",
21-
"TypeScript"
21+
"typescript"
2222
],
2323
"author": "Dmitriy Shishkin",
2424
"license": "ISC",
@@ -41,6 +41,6 @@
4141
"eslint-plugin-jsx-a11y": "6.2.1",
4242
"react": "^16.8.3",
4343
"react-navigation": "^3.11.0",
44-
"typescript": "^3.4.5"
44+
"typescript": "^3.5.1"
4545
}
4646
}

src.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const setNavigationContainer = (
3232
}: RefObject<NavigationContainerComponent>,
3333
needRemoveSubs?: boolean,
3434
) => {
35-
if (navigationContainerNode != null && navigatorsByName[navigationName] == null) {
35+
if (navigationContainerNode != null) {
3636
const navigator = (navigationContainerNode as Navigator);
3737
if (needRemoveSubs) {
3838
const { subs } = navigator;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"strict": true, /* Enable all strict type-checking options. */
2727
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
2828
// "strictNullChecks": true, /* Enable strict null checks. */
29-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
29+
"strictFunctionTypes": false, /* Enable strict checking of function types. */
3030
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
3131
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
3232
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */

0 commit comments

Comments
 (0)