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

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M12 24l-8-9h6v-15h4v15h6z"/>
</svg>

After

Width:  |  Height:  |  Size: 128 B

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M12 0l8 9h-6v15h-4v-15h-6z"/>
</svg>

After

Width:  |  Height:  |  Size: 129 B

View File

@@ -4,8 +4,10 @@ export { default as IconAdd } from './add.svg';
export { default as IconAddPeople } from './link.svg';
export { default as IconArrowBack } from './arrow_back.svg';
export { default as IconArrowDown } from './arrow_down.svg';
export { default as IconArrowDownLarge } from './arrow_down_large.svg';
export { default as IconArrowDownSmall } from './arrow-down-small.svg';
export { default as IconArrowUp } from './arrow_up.svg';
export { default as IconArrowUpLarge } from './arrow_up_large.svg';
export { default as IconArrowLeft } from './arrow-left.svg';
export { default as IconAudioOnly } from './visibility.svg';
export { default as IconAudioOnlyOff } from './visibility-off.svg';

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.