From f7946b06e352399ba73ab9e3e8acce213009fa6c Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Thu, 7 Feb 2019 11:54:45 -0300 Subject: [PATCH 1/2] Adds placeholder support for mobile's rich text component. --- packages/editor/src/components/rich-text/index.native.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 8a7ce63178eafb..7e898073ac90ff 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -396,6 +396,8 @@ export class RichText extends Component { fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } + placeholder={ this.props.placeholder } + placeholderTextColor={ this.props.placeholderTextColor || 'lightgrey' } /> ); From 3a161c81b3b32e39e4dc45e6211a1848ddbbbb0e Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Thu, 7 Feb 2019 12:18:23 -0300 Subject: [PATCH 2/2] Removes an unnecessary line of code. --- packages/editor/src/components/rich-text/index.native.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 7e898073ac90ff..c52f31cbc96ed3 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -379,6 +379,7 @@ export class RichText extends Component { } text={ { text: html, eventCount: this.lastEventCount } } placeholder={ this.props.placeholder } + placeholderTextColor={ this.props.placeholderTextColor || 'lightgrey' } onChange={ this.onChange } onFocus={ this.props.onFocus } onBlur={ this.props.onBlur } @@ -396,8 +397,6 @@ export class RichText extends Component { fontSize={ this.props.fontSize } fontWeight={ this.props.fontWeight } fontStyle={ this.props.fontStyle } - placeholder={ this.props.placeholder } - placeholderTextColor={ this.props.placeholderTextColor || 'lightgrey' } /> );