Fix regression introduced in 1.5.8
This commit is contained in:
parent
b1c2f34b56
commit
bdf810126f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue