GuidesComponentsjournal

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.

Last updated on

On this page