If you need to hide the cursor from input field in React Native, you need to use caretHidden prop of <TextInput> component and set it to true. The default value…
Multiline textarea input field is required where a lengthy text needs to be entered. Some use case are About me field in profile, chat messenger box, wysiwyg editor etc. React…
In order to capitalize words in input field in React Native, we need to use autoCapitalize prop of <TextInput> component. There are various possible values of autoCapitalize – characters –…
A <TextInput> component is used to create input field in React native. There are multiple props associated with this component which defines the behavior of text input. Apart from all…
Suppose you are creating an app of a blog where you display articles on wildlife. In the text you have links targeting national geographic website. But the links are not…
There are situations when we do not want to fix the text size. Else we want it to expand or shrink according to the size of enclosing parent view. React…
Suppose we are creating a mobile application of famous quotes. Now users will want to copy those quotes and share with their friends. For that, you need to make the…
Underline text can be created using text-decoration properties of CSS like – textDecorationStyle – For type of underline like solid, dotted, dashed etc. textDecorationColor – For colorful underlines textDecorationLine –…
Just like we created the bold text, we can also convert the text into italics. All we need to do is to use fontStyle: italic css on Text component. This…
To create styling like bold in text in React native, we can use css like fontWeight: bold. Nesting of text blocks is supported in React native and we can use…
In order to create text in React Native we need to use <Text> component. This is one of the most useful component and highly customizable. Text component supports various styles…
In order to change the toggle switch color we need to use props like – thumbColor – To change the color of circular disc. It accepts color value. trackColor –…
In order to disable the toggle switch in React Native, we can use disabled prop of <Switch> component and set it to true. Once the switch is disabled, the user…
React Native provides <Switch> component which can be used as toggle button in Android and iOS apps. There are two required props – onValueChange – To run a function when…
React Native provides translucent prop in StatusBar component which when set to true, allows the app to draw under it. With this prop, the statusbar becomes transparent. We can also…
We can hide the status bar in React Native using hidden prop which can be applied on <StatusBar> component. If this prop is set to true then the status bar…
To display white text and icons in statusbar in React Native, we need to provide value light-content to barStyle prop of StatusBar component. By setting this value, the background of…