Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 354 Bytes

File metadata and controls

17 lines (13 loc) · 354 Bytes

react-native-app-helpers/HeaderIcon

Describes an icon on the left or right side of a header bar.

Usage

import type { HeaderIcon } from "react-native-app-helpers";
import ExampleIcon from "./assets/example-icon.svg";

const example: HeaderIcon = {
  icon: ExampleIcon,
  onPress() {
    alert(`The button has been pressed.`);
  },
};