DEV Community

skptricks
skptricks

Posted on

React Native Set Default PlaceHolder Text in TextInput Component

Post Link : React Native Set Default PlaceHolder Text in TextInput Component

This tutorial explains how to add or set default PlaceHolder text in TextInput Component in react native application. PlaceHolder text can be anything with a specific message or short information that tells the application user regarding to that particular TextInput. By seeing the PlaceHolder user knows what type of value or information required to fill inside Text Input component.When user starts typing the user’s entered text replaces the placeholder and when user erased all the text from TextInput then again placeholder becomes visible.

Basically Placeholder provides hints or message about that particular TextInput Component, To add PlaceHolder text in TextInput Component, you need to specify placeholder=" Enter Your First Name" Props inside the TextInput Component.

Download code

Top comments (0)