From adaae102421566b5e155458386b5487aba5ef09c Mon Sep 17 00:00:00 2001 From: Tugdual de Kerviler Date: Tue, 14 Jan 2020 15:45:11 +0100 Subject: [PATCH] [RNMobile] Merge mobile release v1.20.0 back into master (step 2) (#19569) * [RNMobile] Merge mobile release v1.20.0 back into master (#19562) * styling fixes after navigation feature merge (#19455) * Styling fixes to navigation feature * Add netural styles for toolbar * Fix condition for not registered component * Display 'Unsupported' in breadcrumbs for missing components * Refactor after CR * Remove leftovers * [FIX] rich text focus loop (#19240) * check if onBlur event contains text that is different than value * add check if there is a text in native event * Prevent re-selection of RichText when native selection changes as a result of resigning focus * Fix typo * Check if isSelected only in onSelectionChangeFromAztec Co-authored-by: Jorge Bernal * [RNMobile] Correct displaying photo during upload (#19502) * [RNMobile] Fix crash once adding Group (#19457) * Add extra branch for travis to run tests onto Co-authored-by: Luke Walczak Co-authored-by: Drapich Piotr Co-authored-by: Jorge Bernal * Revert travis changes Co-authored-by: Luke Walczak Co-authored-by: Drapich Piotr Co-authored-by: Jorge Bernal --- .../src/media-text/style.native.scss | 1 - packages/components/src/button/index.native.js | 4 ++-- .../rich-text/src/component/index.native.js | 17 +++++++++++++++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/block-library/src/media-text/style.native.scss b/packages/block-library/src/media-text/style.native.scss index 24c06303501330..75fb16c740df81 100644 --- a/packages/block-library/src/media-text/style.native.scss +++ b/packages/block-library/src/media-text/style.native.scss @@ -34,7 +34,6 @@ .contentCentered { flex: 1; - justify-content: center; align-items: center; } diff --git a/packages/components/src/button/index.native.js b/packages/components/src/button/index.native.js index 84132eb84e9141..2d3fb10a89c56a 100644 --- a/packages/components/src/button/index.native.js +++ b/packages/components/src/button/index.native.js @@ -125,8 +125,8 @@ export function Button( props ) { ) ); - const newIcon = cloneElement( ( icon && ), - { colorScheme: props.preferredColorScheme, isPressed } ); + const newIcon = icon ? cloneElement( ( ), + { colorScheme: props.preferredColorScheme, isPressed } ) : null; const element = (