feat(stats) add stats for mobile

This commit is contained in:
tmoldovan8x8
2020-12-22 11:12:52 +02:00
committed by GitHub
parent 8d813a499c
commit 5ecb5717c7
15 changed files with 549 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ import { Icon } from '../../../icons';
import { type StyleType } from '../../../styles';
import styles from './indicatorstyles';
import { BASE_INDICATOR } from './styles';
type Props = {
@@ -40,7 +41,9 @@ export default class BaseIndicator extends Component<Props> {
const { highlight, icon, iconStyle } = this.props;
return (
<View style = { highlight ? styles.highlightedIndicator : null }>
<View
style = { [ BASE_INDICATOR,
highlight ? styles.highlightedIndicator : null ] }>
<Icon
src = { icon }
style = { [

View File

@@ -208,6 +208,11 @@ export const TINTED_VIEW_DEFAULT = {
opacity: 0.8
};
export const BASE_INDICATOR = {
alignItems: 'center',
justifyContent: 'center'
};
/**
* The styles of the generic React {@code Component}s implemented by the feature
* base/react.