-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy path0006-Always-Show-Placeholder-Option
26 lines (16 loc) · 1.29 KB
/
0006-Always-Show-Placeholder-Option
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!--
Thank you for starting a discussion about React Native!
Please follow the structure shown below.
Note: Issues should be limited to long-form discussions.
If you have a proposal, please add it via a Pull Request.
-->
### Introduction
<!--
A brief intro about the topic you want to discuss.
-->
Hello everyone. I have a feature request that I believe is not able to be achieved with the current `TextInput` component implementation.
### Details
Specifically, I would like it to be possible to always show the placeholder in a `TextInput`. This would be useful when there is a prompt for with a multiline input and the user can still follow along the prompt, typing, while the placeholder would dissapear as they type. I would leave it up to react developers to then make the `placeholder` content stateful for this type of behaviour, but it would at least need to be the case to expose such an `alwaysShowPlaceholder` prop.
### Discussion points
This would require the `boolean` prop `alwaysShowPlaceholder` to be exposed on the `TextInput` component. Then the question becomes if this type of behaviour is even possible according to native modules.
If this is possible already using the `TextInput` component, please let me know. But obviously I've read the docs and don't believe it is, thus this proposal :)