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