UNPKG

react95-native

Version:

Refreshed Windows 95 style UI components for your React Native app

40 lines (39 loc) 4.77 kB
import React from 'react'; import { StyleProp, ViewStyle, View } from 'react-native'; import type { Theme } from '../../types'; declare type Props = React.ComponentPropsWithRef<typeof View> & { children?: React.ReactNode; elevation?: number; style?: StyleProp<ViewStyle>; theme: Theme; }; declare const _default: (React.ComponentClass<Pick<Props, "ref" | "style" | "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityComponentType" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityTraits" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "elevation"> & { theme?: import("@callstack/react-theme-provider").$DeepPartial<Theme> | undefined; }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & { ({ children, elevation: elevationProp, style, theme, ...rest }: Props): JSX.Element; Content: ({ children, style, ...rest }: import("react-native").ViewProps & React.RefAttributes<View> & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; }) => JSX.Element; }) | (React.FunctionComponent<Props> & { ({ children, elevation: elevationProp, style, theme, ...rest }: Props): JSX.Element; Content: ({ children, style, ...rest }: import("react-native").ViewProps & React.RefAttributes<View> & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; }) => JSX.Element; }), {}>) | (React.FunctionComponent<Pick<Props, "ref" | "style" | "children" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityComponentType" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityTraits" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "elevation"> & { theme?: import("@callstack/react-theme-provider").$DeepPartial<Theme> | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & { ({ children, elevation: elevationProp, style, theme, ...rest }: Props): JSX.Element; Content: ({ children, style, ...rest }: import("react-native").ViewProps & React.RefAttributes<View> & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; }) => JSX.Element; }) | (React.FunctionComponent<Props> & { ({ children, elevation: elevationProp, style, theme, ...rest }: Props): JSX.Element; Content: ({ children, style, ...rest }: import("react-native").ViewProps & React.RefAttributes<View> & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; }) => JSX.Element; }), {}>); export default _default;