Skip to content

Commit 8de2643

Browse files
pre10der89matthargett
authored andcommitted
TextInput PlaceholderText Implementation (microsoft#1038)
* Adding placeholder text to the NET46 TextInput control by applying an adorner
1 parent 23593be commit 8de2643

File tree

8 files changed

+1172
-2
lines changed

8 files changed

+1172
-2
lines changed

Libraries/Components/PasswordBoxWindows/PasswordBoxWindows.windows.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ var PasswordBoxWindows = React.createClass({
368368
passwordChar={this.props.passwordChar}
369369
passwordRevealMode={this.props.passwordRevealMode}
370370
placeholder={this.props.placeholder}
371+
placeholderTextColor={this.props.placeholderTextColor}
371372
selectionColor={this.props.selectionColor}
372373
text={this._getText()}
373374
editable={this.props.editable}

Libraries/Components/TextInput/TextInput.windows.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ var TextInput = React.createClass({
649649
selectTextOnFocus={this.props.selectTextOnFocus}
650650
onLayout={this.props.onLayout}
651651
placeholder={this.props.placeholder}
652+
placeholderTextColor={this.props.placeholderTextColor}
652653
selectionColor={this.props.selectionColor}
653654
text={this._getText()}
654655
editable={this.props.editable}
@@ -673,6 +674,7 @@ var TextInput = React.createClass({
673674
selectTextOnFocus={this.props.selectTextOnFocus}
674675
onLayout={this.props.onLayout}
675676
placeholder={this.props.placeholder}
677+
placeholderTextColor={this.props.placeholderTextColor}
676678
selectionColor={this.props.selectionColor}
677679
text={this._getText()}
678680
editable={this.props.editable}

ReactWindows/ReactNative.Net46/ReactNative.Net46.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
<Compile Include="Views\Progress\ReactProgressBarViewManager.cs" />
172172
<Compile Include="Views\Scroll\ReactScrollViewManager.cs" />
173173
<Compile Include="Views\Slider\ReactSliderManager.cs" />
174+
<Compile Include="Views\TextInput\PlaceholderAdorner.cs" />
174175
<Compile Include="Views\Text\ReactTextCompoundView.cs" />
175176
<Compile Include="Views\Text\ReactTextShadowNode.cs" />
176177
<Compile Include="Views\Text\ReactTextViewManager.cs" />

0 commit comments

Comments
 (0)