[RN] Add ExpandedLabel

This commit is contained in:
Bettenbuk Zoltan
2018-09-11 12:16:01 +02:00
committed by Saúl Ibarra Corretgé
parent d604cdfe27
commit e5cc732b72
27 changed files with 860 additions and 75 deletions

View File

@@ -0,0 +1,25 @@
// @flow
import { translate } from '../../base/i18n';
import { ExpandedLabel, type Props as AbstractProps } from '../../base/label';
type Props = AbstractProps & {
t: Function
}
/**
* A react {@code Component} that implements an expanded label as tooltip-like
* component to explain the meaning of the {@code TranscribingLabel}.
*/
class TranscribingExpandedLabel extends ExpandedLabel<Props> {
/**
* Returns the label specific text of this {@code ExpandedLabel}.
*
* @returns {string}
*/
_getLabel() {
return this.props.t('transcribing.expandedLabel');
}
}
export default translate(TranscribingExpandedLabel);