// @flow import * as React from 'react'; import {Button, Card, withTheme} from 'react-native-paper'; import {StyleSheet} from "react-native"; type Props = { navigation: Object, theme: Object, } class ActionsDashBoardItem extends React.PureComponent { colors: Object; constructor(props) { super(props); this.colors = this.props.theme.colors; } openDrawer = () => this.props.navigation.openDrawer(); render() { return ( ); } } const styles = StyleSheet.create({ card: { width: 'auto', marginLeft: 10, marginRight: 10, marginTop: 10, overflow: 'hidden', elevation: 4, borderWidth: 1, }, avatar: { backgroundColor: 'transparent' }, content: { flex: 1, flexDirection: 'row', }, button: { marginLeft: 'auto', marginRight: 'auto', } }); export default withTheme(ActionsDashBoardItem);