From a6bca9939376b73f7355743702d8318e296c79c1 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 8 May 2020 09:56:11 -0300 Subject: [PATCH] [FIX] UIKit crashing when UIKitModal receive update event (#2088) Co-authored-by: Diego Mello --- app/views/ModalBlockView.js | 2 +- package.json | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/ModalBlockView.js b/app/views/ModalBlockView.js index 3c6314e2b..f8cd270a1 100644 --- a/app/views/ModalBlockView.js +++ b/app/views/ModalBlockView.js @@ -154,8 +154,8 @@ class ModalBlockView extends React.Component { this.setState({ errors }); } else { this.setState({ data }); + navigation.setParams({ data }); } - navigation.setParams({ data }); }; cancel = async({ closeModal }) => { diff --git a/package.json b/package.json index c227899f2..c1fc76eff 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@react-native-community/datetimepicker": "^2.1.0", "@react-native-community/slider": "2.0.5", "@rocket.chat/sdk": "djorkaeffalexandre/Rocket.Chat.js.SDK#test.fix-ddp", - "@rocket.chat/ui-kit": "^0.2.0-alpha.25", + "@rocket.chat/ui-kit": "^0.8.0", "base-64": "^0.1.0", "bugsnag-react-native": "2.23.2", "commonmark": "git+https://github.com/RocketChat/commonmark.js.git", diff --git a/yarn.lock b/yarn.lock index 09d6a652e..70acb0a76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1925,10 +1925,10 @@ tiny-events "^1.0.1" universal-websocket-client "^1.0.2" -"@rocket.chat/ui-kit@^0.2.0-alpha.25": - version "0.2.0-alpha.26" - resolved "https://registry.yarnpkg.com/@rocket.chat/ui-kit/-/ui-kit-0.2.0-alpha.26.tgz#139e337bc8e751ecd5e61e7a07e563792c37d002" - integrity sha512-UBsuntc/W/s545WJGUZlG2TyrrCI59REhRWcgIR/Ueb3qkh/DuhdtK6zjVH1y0M+tLlkrIgtEAsoatj55nkWVA== +"@rocket.chat/ui-kit@^0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@rocket.chat/ui-kit/-/ui-kit-0.8.0.tgz#84d1614c0f3c7749511bfbd555c1592485d262b3" + integrity sha512-JNpwGcVQfBHjfG/sLJmMwau0BNvUWx210UAji4MnARAvfxBUslUYWzTRDkvxryKX0223dbTC91HOMt1HZDNNLQ== "@snyk/composer-lockfile-parser@1.0.3": version "1.0.3" @@ -10077,7 +10077,7 @@ react-native-scrollable-tab-view@^1.0.0: prop-types "^15.6.0" react-timer-mixin "^0.13.3" -react-native-slowlog@1.0.2: +react-native-slowlog@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/react-native-slowlog/-/react-native-slowlog-1.0.2.tgz#5520979e3ef9d5273495d431ff3be34f02e35c89" integrity sha1-VSCXnj751Sc0ldQx/zvjTwLjXIk=