Type alias TileProps

TileProps: {
    children?: React.ReactNode;
    componentProps?: ViewProps;
    onLongPress?: ((event) => void);
    onPress?: ((event) => void);
    style?: StyleProp<ViewStyle>;
    tileText?: string;
    type?: "default" | "scroll" | "clickable";
}

Props for Tile component

Type declaration

  • Optional children?: React.ReactNode

    Children to render

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • Optional onLongPress?: ((event) => void)
      • (event): void
      • onLongPress event for clickable tile

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional onPress?: ((event) => void)
      • (event): void
      • onPress event for clickable tile

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • Optional tileText?: string

    Text to use for tile clickable (accessibility). Defaults to ENGLISH "Tile"

  • Optional type?: "default" | "scroll" | "clickable"

    Type of tile

Generated using TypeDoc