ref is a string

This commit is contained in:
bsudekum
2015-12-14 10:42:29 -08:00
parent ba0da102a9
commit c142355313
3 changed files with 10 additions and 32 deletions
@@ -259,25 +259,7 @@ public class ReactNativeMapboxGLManager extends SimpleViewManager<MapView> {
@ReactProp(name = PROP_COMPASS_IS_HIDDEN)
public void setCompassIsHidden(MapView view, Boolean value) {
view.setCompassEnabled(value);
}
@ReactProp(name = PROP_LOGO_IS_HIDDEN)
public void setLogoIsHidden(MapView view, Boolean value) {
if (value) {
view.setLogoVisibility(0);
} else {
view.setLogoVisibility(1);
}
}
@ReactProp(name = PROP_ATTRIBUTION_IS_HIDDEN)
public void setAttributionIsHidden(MapView view, Boolean value) {
if (value) {
view.setAttributionVisibility(0);
} else {
view.setAttributionVisibility(1);
}
view.setCompassEnabled(!value);
}
public void setCenterCoordinateZoomLevel(MapView view, @Nullable ReadableMap center) {