Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 599 Bytes

File metadata and controls

29 lines (25 loc) · 599 Bytes

react-native-app-helpers/HeaderBodyFooterProps

Props to be given to header/body/footer components.

Usage

import type { HeaderBodyFooterProps } from "react-native-app-helpers";
import { Text } from "react-native";

const example: HeaderBodyFooterProps = {
  header: (
    <Text>
      This is shown at the top.
    </Text>
  ),
  body: (
    <Text>
      This is shown in a fluid-height section between the header and footer,
      with 25 pixels of margin above and 75 pixels below.
    </Text>
  ),
  footer: (
    <Text>
      This is shown at the bottom.
    </Text>
  ),
};