1
import * as React from 'react';
2

3 4
import { createHostComponent } from '@remax/shared';
4
import { BaseProps } from '../../types/component';
5

6
export interface NavigatorProps extends BaseProps {
7
  url: string;
8
  delta?: number;
9
  openType?: 'navigate' | 'redirect' | 'switchTab' | 'navigateBack';
10
  hoverClassName?: string;
11
  hoverStartTime?: number;
12
  hoverStayTime?: number;
13
  hoverStopPropagation?: boolean;
14
}
15

16 4
export const Navigator: React.ComponentType<NavigatorProps> = createHostComponent<NavigatorProps>('navigator');
17

18 4
Navigator.defaultProps = {
19
  openType: 'navigate',
20
  hoverClassName: 'navigator-hover',
21
  hoverStartTime: 50,
22
  hoverStayTime: 400,
23
  hoverStopPropagation: false,
24
};

Read our documentation on viewing source code .

Loading