Remove redundant style prop check

This commit is contained in:
Dmitry Gladkov 2016-06-06 17:14:23 +03:00
parent 0b1998caf6
commit b780d9df2e
1 changed files with 1 additions and 1 deletions

View File

@ -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 = StyleSheet.flatten(style) || {};
var borderRadius = flatStyle.borderRadius || 0;
// this is the format taken by: