UNPKG

@prosperitainova/dumbo-react-native

Version:
30 lines 1.23 kB
import React from 'react'; import { ViewProps, StyleProp, ViewStyle, GestureResponderEvent } from 'react-native'; /** Props for Tile component */ export type TileProps = { /** Type of tile */ type?: 'default' | 'scroll' | 'clickable'; /** onPress event for clickable tile */ onPress?: (event: GestureResponderEvent) => void; /** onLongPress event for clickable tile */ onLongPress?: (event: GestureResponderEvent) => void; /** Style to set on the item */ style?: StyleProp<ViewStyle>; /** Text to use for tile clickable (accessibility). Defaults to ENGLISH "Tile" */ tileText?: string; /** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */ componentProps?: ViewProps; /** Children to render */ children?: React.ReactNode; }; /** * Tile component for rendering a carbon tile * * {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/Tile.tsx | Example code} */ export declare class Tile extends React.Component<TileProps> { private get styles(); private getStateStyle; render(): React.ReactNode; } //# sourceMappingURL=index.d.ts.map