easy-page-router
Version:
easy-page-router is a lightweight and easy-to-use JavaScript routing package that simplifies navigation in vanilla JavaScript, React, and React Native applications.
12 lines (11 loc) • 442 B
TypeScript
import React, { ReactNode } from "react";
import { GestureResponderEvent, StyleProp, ViewStyle } from "react-native";
export * from ".";
export type LinkProps = {
href: string;
style?: StyleProp<ViewStyle>;
styleActive?: StyleProp<ViewStyle>;
children: ReactNode;
onPress?: (e: GestureResponderEvent) => void;
};
export declare function Link({ href, style, styleActive, children, onPress }: LinkProps): React.JSX.Element;