26 lines · 876 B · TypeScript
RawDownload
import { requireNativeView } from "expo";import type { NativeSyntheticEvent, StyleProp, ViewProps, ViewStyle } from "react-native"; interface NativeHeaderButtonProps extends ViewProps {  readonly label: string;  readonly systemImage: "gearshape" | "square.and.pencil";  readonly onTriggered: (event: NativeSyntheticEvent<Record<string, never>>) => void;} const NativeHeaderButton = requireNativeView<NativeHeaderButtonProps>("T3NativeControls"); export function T3HeaderButton(props: {  readonly accessibilityLabel: string;  readonly icon: NativeHeaderButtonProps["systemImage"];  readonly onPress: () => void;  readonly style?: StyleProp<ViewStyle>;}) {  return (    <NativeHeaderButton      label={props.accessibilityLabel}      onTriggered={props.onPress}      style={[{ width: 44, height: 44 }, props.style]}      systemImage={props.icon}    />  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t