Add hint box with dynamic join button

This commit is contained in:
zbettenbuk
2018-02-16 10:06:03 -06:00
committed by Lyubo Marinov
parent 547ddee3a5
commit e23d4317eb
8 changed files with 178 additions and 17 deletions

View File

@@ -5,12 +5,21 @@ import { ActivityIndicator } from 'react-native';
import { ColorPalette } from '../../../styles';
type Props = {
/**
* Prop to set the size of the indicator. This is the same as the
* prop of the native component.
*/
size: 'large' | 'small'
};
/**
* An animated, large react-native {@link ActivityIndicator} which is considered
* a suitable visualization of long-running processes with indeterminate amounts
* of work to be done.
*/
export default class LoadingIndicator extends Component<*> {
export default class LoadingIndicator extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
@@ -22,7 +31,7 @@ export default class LoadingIndicator extends Component<*> {
<ActivityIndicator
animating = { true }
color = { ColorPalette.white }
size = { 'large' }
size = { this.props.size || 'large' }
{ ...this.props } />
);
}