From 3b1de6174d98d1aff033eef510bc056fcfe2680f Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Thu, 2 Jun 2016 14:16:53 +0200 Subject: [PATCH] optional style property --- index.android.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.android.js b/index.android.js index 496156f..d3c4b38 100644 --- a/index.android.js +++ b/index.android.js @@ -19,7 +19,7 @@ var LinearGradient = React.createClass({ // inherit container borderRadius until this issue is resolved: // https://github.com/facebook/react-native/issues/3198 - var flatStyle = style && StyleSheet.flatten(style); + var flatStyle = style && StyleSheet.flatten(style) || {}; var borderRadius = flatStyle.borderRadius || 0; // this is the format taken by: