Fix lint in StyleSheet.compose
Reviewed By: TheSavior, yungsters Differential Revision: D7106910 fbshipit-source-id: e150c6622bb1af9830eef06757897d42002f5676
This commit is contained in:
parent
b6c7e551a9
commit
52c7957349
|
@ -139,10 +139,10 @@ module.exports = {
|
|||
* PureComponent checks.
|
||||
*/
|
||||
compose(style1: ?StyleProp, style2: ?StyleProp): ?StyleProp {
|
||||
if (style1 && style2) {
|
||||
if (style1 != null && style2 != null) {
|
||||
return [style1, style2];
|
||||
} else {
|
||||
return style1 || style2;
|
||||
return style1 != null ? style1 : style2;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue