Open skizzo opened 4 years ago
I don't think the library should be messing with the activity indicator at all unless told to. Also looking for this.
I've added a check here to not disable it if it was not enabled to begin with (there's a prop on the request config to enable it). This PR contains other changes, but I've added that as well since it was affecting me: https://github.com/joltup/rn-fetch-blob/pull/497
Hi, when using this package (
v0.11.2
) on iOS, I noticed that on every finished download, the codeis called in
RNFetchBlobRequest.m
.This leads to undesired behaviour when wanting to manage the network activity indicator via the React Native
StatusBar
, sincern-fetch-blob
constantly manually overrides the value (that should be exclusively taken from theStatusBar
component) via the native code mentioned above.Could this be somehow avoided? Please don't suggest using a timer and manually setting (/overriding) the indicator' visibility with setNetworkActivityIndicatorVisible() , it's a hacky non-solution.