React-native: TextInput clearButtonMode not showing when multiline set to true

Created on 8 Jan 2018  Â·  2Comments  Â·  Source: facebook/react-native

Description
Here are config props I tried to set on TextInput, but clearButton wouldn't show up

multiline: true,
numberOfLines: 2,
clearButtonMode: "while-editing",

Reproduction Steps and Sample Code
List all the steps required to reproduce the issue you're reporting. These steps should be clear and concise.

An example of code is

render() {
return (
<TextInput
returnkeyType: "done",
multiline: true,
numberOfLines: 2,
clearButtonMode: "while-editing",
/>
);
}

Solution
Add clear button

Additional Information
React Native version: 48
Platform: [FILL THIS OUT: iOS, Android, or both?] iOS
Development Operating System: macOS
Dev tools: iOS

Ran Commands Locked

All 2 comments

@facebook-github-bot no-template

Hey @myJarvis, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to Contribute • What to Expect from Maintainers

Was this page helpful?
0 / 5 - 0 ratings