[add] support numeric ActivityIndicator size value

This commit is contained in:
Nicolas Gallagher
2016-09-01 16:36:49 -07:00
parent 103560fc11
commit 9222cbf4bd
3 changed files with 26 additions and 38 deletions
@@ -68,21 +68,6 @@ const examples = [
);
}
},
{
title: 'Gray',
render() {
return (
<View>
<ActivityIndicator
style={[styles.centering]}
/>
<ActivityIndicator
style={[styles.centering, styles.gray]}
/>
</View>
);
}
},
{
title: 'Custom colors',
render() {
@@ -143,10 +128,13 @@ const examples = [
title: 'Custom size',
render() {
return (
<ActivityIndicator
style={[styles.centering, {transform: [{scale: 1.5}]}]}
size="large"
/>
<View style={[styles.horizontal, styles.centering]}>
<ActivityIndicator size="40" />
<ActivityIndicator
style={{ marginLeft: 20, transform: [ {scale: 1.5} ] }}
size="large"
/>
</View>
);
}
},