Answer.Question
The Answer.Question component displays question text in journal and questionnaire forms. It provides consistent typography and styling for question prompts with emphasis on readability and accessibility.
- Stable unknown
- Release candidate since 1.16.1-rc.3
- Development since 1.16.1-dev.2111+9796905
The Answer.Question component displays question text in journal and questionnaire forms. It provides consistent typography and styling for question prompts with emphasis on readability and accessibility.
Basic Example
import { Answer } from "@ovok/native";
import * as React from "react";
import { Text } from "react-native-paper";
const BasicAnswerQuestion = () => (
<Answer.Question>How are you feeling today?</Answer.Question>
);
export default BasicAnswerQuestion;Props
Every prop, with its type and description, is listed in the @ovok/native/journal API reference.
Styling
Default Styles
const styles = StyleSheet.create({
question: {
fontSize: 18,
fontWeight: "600",
},
});Theme Integration
Uses react-native-paper default text colors from the theme system.
Related Components
- Answer - Parent container component
- Answer.Header - Header navigation component
- Answer.Input - Text input component
- Answer.Actions - Bottom action container
Last updated on
Answer.Input
The Answer.Input component renders React Native's TextInput with the
PastJournalCard
The PastJournalCard component displays completed journal entries and questionnaire responses in a Material Design card format. It provides a structured layout for showing historical health data, patient responses, and journal content.