ManuallyRequestSheet.Image
Platform-specific imagery component that displays illustrations for health platform integrations with built-in support for Apple, Google, and Fitbit.
Quick Example
import { DataSync } from "@ovok/native";
import React from "react";
const ImageExample = () => {
return <DataSync.ManuallyRequestSheet.Image for="apple" />;
};
export default ImageExample;
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
for | "apple" | "google" | "fitbit" | - | - | Platform provider for automatic image |
source | ImageSourcePropType | - | - | Custom image source (ignored if for is set) |
containerProps | ViewProps | - | - | Props for the image container |
style | ImageStyle | - | - | Additional image styling |
testID | string | - | - | Test identifier for testing |
Inherits all ImageProps from React Native except source when for is provided
Component Behavior
The Image component provides:
- Platform Images: Built-in illustrations for major health platforms
- Custom Images: Support for custom image sources when no platform is specified
- Container Styling: Themed container with proper spacing and background
- Responsive Sizing: Images automatically size to fit container
- Theme Integration: Container styling adapts to app theme
Built-in Platform Support
Apple Health
<ManuallyRequestSheet.Image for="apple" />
Displays the Apple Health Connect illustration with:
- Apple Health logo and branding
- Health data visualization graphics
- iOS-style interface elements
Google Health Connect
<ManuallyRequestSheet.Image for="google" />
Displays the Google Health Connect illustration with:
- Health Connect logo and branding
- Android health data graphics
- Material Design interface elements
Container Styling
Theme Values Used
theme.colors.surface- Container background colortheme.borderRadius(5)- Container border radiustheme.spacing(4)- Container padding- Fixed height: 180px
- Center alignment for images
Styling
Theme Colors Used
theme.colors.surface- Default container backgroundtheme.borderRadius(5)- Container corner radius
Related Components
- ManuallyRequestSheet.Title - Title component that typically precedes the image
- ManuallyRequestSheet.Description - Description that typically follows the image
- ManuallyRequestSheet.Container - Container that holds the image component