@es-react/react
Version:
Hippy react framework
32 lines (31 loc) • 1.04 kB
TypeScript
import React from 'react';
import { Fiber } from '@hippy/react-reconciler';
import { LayoutableProps, ClickableProps, TouchableProps } from '../types';
import { Color } from '../color';
import { HippyTypes } from '../types';
interface ViewProps extends LayoutableProps, ClickableProps, TouchableProps {
accessibilityLabel?: string;
accessible?: boolean;
collapsable?: false;
overflow?: 'visible' | 'hidden';
focusable?: boolean;
requestFocus?: boolean;
nextFocusDownId?: string | Fiber;
nextFocusUpId?: string | Fiber;
nextFocusLeftId?: string | Fiber;
nextFocusRightId?: string | Fiber;
style?: HippyTypes.Style;
nativeBackgroundAndroid?: {
color: Color;
borderless: boolean;
rippleRadius: number;
};
onFocus?: (evt: HippyTypes.FocusEvent) => void;
}
declare class View extends React.Component<ViewProps, {}> {
private instance;
setPressed(pressed: boolean): void;
setHotspot(x: number, y: number): void;
render(): any;
}
export default View;