Answer.Actions
The Answer.Actions component provides a themed container for action buttons at the bottom of journal entry forms. It applies consistent horizontal padding and serves as a wrapper for submission, navigation, and other form-related buttons.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
The Answer.Actions component provides a themed container for action buttons at the bottom of journal entry forms. It applies consistent horizontal padding and serves as a wrapper for submission, navigation, and other form-related buttons.
Basic Example
import { Answer } from "@ovok/native";
import * as React from "react";
import { Button } from "react-native-paper";
const BasicAnswerActions = () => (
<Answer.Actions>
<Button mode="contained">Save</Button>
</Answer.Actions>
);
export default BasicAnswerActions;Props
Every prop, with its type and description, is listed in the @ovok/native/journal API reference.
Styling
Default Styles
Applies horizontal padding using the theme system:
style={[{ paddingHorizontal: theme.spacing(2) }, style]}Related Components
- Answer - Parent container component
- Answer.Header - Header navigation component
- Answer.Question - Question display component
- Answer.Input - Text input component
Last updated on
Answer
The Answer component provides a keyboard-aware scrollable container for journal entry forms. It combines KeyboardAwareScrollView with KeyboardToolbar to create an optimal mobile input experience for healthcare questionnaires and journal entries.
Answer.Header
The Answer.Header component provides a horizontal layout container for form navigation and action elements. It's designed to house back buttons, progress indicators, save actions, and other form-related controls at the top of journal entry screens.