Skip to main content

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

#NameData typeDefault valueValuesDescription
1styleobjectCustom style object
2classNamestring''It defined nativewind style classes.

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