[ActivityIndicator] Specify a width

Summary:
The activity indicator was treated as a zero-width element without an explicit width. Fill it in so the style dimensions match what is displayed on the screen.

Closes https://github.com/facebook/react-native/pull/1156
Github Author: James Ide <ide@jameside.com>

Test Plan:
 Render an ActivityIndicator with a background, and see that the background shows up as a square behind the spinner instead of not showing up at all (since it was 0px wide previously).
This commit is contained in:
James Ide 2015-06-17 07:42:16 -07:00
parent 92d98533f1
commit 51e5794cb8
1 changed files with 2 additions and 0 deletions

View File

@ -88,9 +88,11 @@ var styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
}, },
sizeSmall: { sizeSmall: {
width: 20,
height: 20, height: 20,
}, },
sizeLarge: { sizeLarge: {
width: 36,
height: 36, height: 36,
} }
}); });