[RN] Increase contrast and consistency in LoadingIndicator use cases
This commit is contained in:
parent
6fb5c4bc29
commit
1ea62215f6
|
@ -3,6 +3,8 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { ActivityIndicator } from 'react-native';
|
import { ActivityIndicator } from 'react-native';
|
||||||
|
|
||||||
|
import { ColorPalette } from '../../../styles';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An animated, large react-native {@link ActivityIndicator} which is considered
|
* An animated, large react-native {@link ActivityIndicator} which is considered
|
||||||
* a suitable visualization of long-running processes with indeterminate amounts
|
* a suitable visualization of long-running processes with indeterminate amounts
|
||||||
|
@ -19,7 +21,9 @@ export default class LoadingIndicator extends Component {
|
||||||
return (
|
return (
|
||||||
<ActivityIndicator
|
<ActivityIndicator
|
||||||
animating = { true }
|
animating = { true }
|
||||||
size = { 'large' } />
|
color = { ColorPalette.white }
|
||||||
|
size = { 'large' }
|
||||||
|
{ ...this.props } />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ class WelcomePage extends AbstractWelcomePage {
|
||||||
// modify non-native children.
|
// modify non-native children.
|
||||||
children = (
|
children = (
|
||||||
<View>
|
<View>
|
||||||
<LoadingIndicator />
|
<LoadingIndicator color = { styles.buttonText.color } />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -40,7 +40,7 @@ export default createStyleSheet({
|
||||||
*/
|
*/
|
||||||
buttonText: {
|
buttonText: {
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
color: '#00ccff',
|
color: ColorPalette.blue,
|
||||||
fontSize: 18
|
fontSize: 18
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue