new setVisibility method for nativeBars plugin