// @flow import * as React from 'react'; import {TouchableRipple, withTheme} from 'react-native-paper'; import {Dimensions, Image, View} from "react-native"; import type {CustomTheme} from "../../../managers/ThemeManager"; type Props = { image: string, isActive: boolean, onPress: () => void, theme: CustomTheme, }; /** * Component used to render a small dashboard item */ class DashboardEditPreviewItem extends React.Component { itemSize: number; constructor(props: Props) { super(props); this.itemSize = Dimensions.get('window').width / 8; } render() { const props = this.props; return ( ); } } export default withTheme(DashboardEditPreviewItem)