ManuallyRequestSheet.Description
Body text component that displays detailed authorization descriptions with consistent typography and theme integration.
Quick Example
import { DataSync } from "@ovok/native";
import React from "react";
const DescriptionExample = () => {
return (
<>
<DataSync.ManuallyRequestSheet.Description>
Allow access to your health data for personalized insights and tracking.
This will help us provide better recommendations based on your activity
and health metrics.
</DataSync.ManuallyRequestSheet.Description>
</>
);
};
export default DescriptionExample;
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
children | React.ReactNode | ✓ | - | Description text content |
variant | MD3TypescaleKey | - | bodyMedium | Material Design 3 text variant |
style | TextStyle | - | - | Additional text styling |
testID | string | - | - | Test identifier for testing |
Inherits all TextProps from react-native-paper
Component Behavior
The Description component renders text using React Native Paper's Text component with:
- Typography: Uses Material Design 3
bodyMediumvariant by default - Font Family: Custom "DMSans_400Regular" font for readability
- Font Size: Fixed at 16px for consistent body text
- Font Weight: Regular (400) for optimal reading
- Text Alignment: Centered by default for modal descriptions
- Line Height: Optimized for multi-line content readability
- Style Merging: Combines default styles with custom styles passed via props
Typography Specifications
Default Styling
- Font Family: DMSans_400Regular
- Font Size: 16px
- Font Weight: 400 (Regular)
- Text Align: Center
- Color: theme.colors.onSurface (inherited from Paper Text)
- Line Height: 1.5 (optimized for readability)
Related Components
- ManuallyRequestSheet.Title - Title component that typically precedes the description
- ManuallyRequestSheet.RequestButton - Action button that typically follows the description
- ManuallyRequestSheet.Image - Visual element often placed before or after description