Skip to content

Commit 5d7934a

Browse files
haani104facebook-github-bot
authored andcommitted
Updated TextInput prop doc
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> I am a web developer, who recently started coding for mobile apps using react-native. I was trying to use the `inlineImageLeft` props of TextInput, but I found that it's docs weren't sufficient. So a PR for it. No code change. Updated the docs under website folder. Screenshot for the change below. ![screen shot 2017-08-30 at 4 39 32 pm](https://user-images.githubusercontent.com/6011865/29869747-e73d9dde-8da1-11e7-912a-16e3115b8296.png) Closes #15708 Differential Revision: D5738795 Pulled By: hramos fbshipit-source-id: b8b6cbac5c50abd4d8a6ef8089dc9d92bc0b7f6f
1 parent 9399379 commit 5d7934a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/Components/TextInput/TextInput.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,13 @@ const TextInput = createReactClass({
513513

514514
/**
515515
* If defined, the provided image resource will be rendered on the left.
516+
* The image resource must be inside `/android/app/src/main/res/drawable` and referenced
517+
* like
518+
* ```
519+
* <TextInput
520+
* inlineImageLeft='search_icon'
521+
* />
522+
* ```
516523
* @platform android
517524
*/
518525
inlineImageLeft: PropTypes.string,

0 commit comments

Comments
 (0)