Fix regression introduced in 1.5.8

This commit is contained in:
Dmitry Gladkov 2016-05-25 13:07:46 +03:00
parent b1c2f34b56
commit bdf810126f
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ public class LinearGradientManager extends SimpleViewManager<LinearGradientView>
@ReactProp(name=PROP_LOCATIONS)
public void setLocations(LinearGradientView gradientView, ReadableArray locations) {
gradientView.setLocations(locations);
if (locations != null) {
gradientView.setLocations(locations);
}
}
@ReactProp(name=PROP_START_POS)