TextInput.Affix
Add-on component for text input.
How to use
import React from 'react';
import {TextInput} from '@gyri/native-ui-components';
const App = () => {
const [text, setText] = React.useState('');
return (
<TextInput
mode="outlined"
label="Outlined input"
placeholder="Type something"
right={<TextInput.Affix text="/100" style={style} className={className} />}
/>
);
}
export default App
Props
| # | Name | Data type | Default value | Values | Description |
|---|---|---|---|---|---|
| 1 | style | object | Custom style object | ||
| 2 | className | string | '' | It defined nativewind style classes. |
For more details https://callstack.github.io/react-native-paper/docs/components/TextInput/TextInputAffix