mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-01-20 20:49:39 +00:00
optional style property
This commit is contained in:
parent
57cb561e30
commit
3b1de6174d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user