Skip to main content

Text

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

How to use

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

const MyComponent = ({style, className}) => (
<Text variant="displayLarge" style={style} className={className}>Text Component</Text>
);

export default MyComponent;

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/Text/