Skip to main content

TextInput

A component for displaying text input.Text displays words and characters at various sizes

How to use

import React from 'react';
import {TextInput} from '@gyri/native-ui-components';

const App = ({style, className}) => {
return (
<TextInput className={className} style={style} />
)
}
export default App

Props

#NameData typeDefault valueValuesDescription
1styleobjectCustom style object
2classNamestring''It defined nativewind style classes.
3mode'flat''flat','outlined'Mode of the TextInput.
4disabledbooleanfalseIf true, user won't be able to interact with the component.
5labelThe text or component to use for the floating label.
6placeholderstringPlaceholder for the input.
7errorbooleanfalseWhether to style the TextInput with error style.
8selectionColorstringSelection color of the input. On iOS, it sets both the selection color and cursor color. On Android, it sets only the selection color.
9cursorColorstringCursor color of the input on Android. This property has no effect on ios.
10underlineColorstringActive underline color of the input.
11activeUnderlineColorstringActive underline color of the input.
12outlineColorstringInactive outline color of the input.
13activeOutlineColorstringActive outline color of the input.
14textColorstringColor of the text in the input.
15multilinebooleanWhether the input can have multiple lines.
16numberOfLinesnumberThe number of lines to show in the input (Android only).
17valuestringValue of the text input.

For more details https://callstack.github.io/react-native-paper/docs/components/TextInput/