GuidesComponentsjournal

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.

  • Stable unknown
  • Release candidate since 1.16.1-rc.3
  • Development since 1.16.1-dev.2111+9796905

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.

Basic Example

import { Answer } from "@ovok/native";
import * as React from "react";
import { Text } from "react-native-paper";

const BasicAnswerHeader = () => (
  <Answer.Header>
    <Text>Header</Text>
  </Answer.Header>
);

export default BasicAnswerHeader;

Props

Every prop, with its type and description, is listed in the @ovok/native/journal API reference.

Styling

Default Styles

const styles = StyleSheet.create({
  header: {
    flexDirection: "row",
    justifyContent: "space-between",
  },
});

Last updated on

On this page