From 16c18dc1da9dd8e32d2cc2714b145eef57313b58 Mon Sep 17 00:00:00 2001 From: James Ide Date: Tue, 5 May 2015 01:54:49 -0700 Subject: [PATCH] [ActivityIndicator] Specify a width 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. 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). --- .../Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js b/Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js index a3f1fe6be8c3d5..cd3da4c6bf9203 100644 --- a/Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js +++ b/Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js @@ -81,9 +81,11 @@ var styles = StyleSheet.create({ justifyContent: 'center', }, sizeSmall: { + width: 20, height: 20, }, sizeLarge: { + width: 36, height: 36, } });