From 5e690efa8f8843d7273f9d77992433606f6a3280 Mon Sep 17 00:00:00 2001 From: Feruz Date: Sat, 11 May 2019 10:14:34 +0300 Subject: [PATCH] fix package and drawer check --- package.json | 3 ++- src/components/header/container/headerContainer.js | 4 +++- yarn.lock | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e80284013..7211a3f0c 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,8 @@ "remarkable": "^1.7.1", "rn-placeholder": "^1.3.2", "speakingurl": "^14.0.1", - "steemconnect": "^2.0.1" + "steemconnect": "^2.0.1", + "stacktrace-parser": "0.1.4" }, "devDependencies": { "babel-eslint": "^10.0.1", diff --git a/src/components/header/container/headerContainer.js b/src/components/header/container/headerContainer.js index 2ed0cd4bf..bc468a769 100644 --- a/src/components/header/container/headerContainer.js +++ b/src/components/header/container/headerContainer.js @@ -30,7 +30,9 @@ class HeaderContainer extends PureComponent { _handleOpenDrawer = () => { const { navigation } = this.props; - navigation.openDrawer(); + if (navigation && navigation.openDrawer && typeof(navigation.openDrawer) == "function") { + navigation.openDrawer(); + } }; _handleOnPressBackButton = () => { diff --git a/yarn.lock b/yarn.lock index e7cf1254b..59638f175 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8365,6 +8365,11 @@ stack-utils@^1.0.1: resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA== +stacktrace-parser@0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.4.tgz#01397922e5f62ecf30845522c95c4fe1d25e7d4e" + integrity sha1-ATl5IuX2Ls8whFUiyVxP4dJefU4= + stacktrace-parser@^0.1.3: version "0.1.5" resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.5.tgz#b6784545b9bf70b4f1325671d024c71269c4bc2a"