mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 19:44:13 +00:00
Fix unrecognized selector error
Summary: Fixes "[NSTaggedPointerString unsignedIntValue]: unrecognized selector" error Closes https://github.com/facebook/react-native/pull/15755 Differential Revision: D5763628 Pulled By: shergin fbshipit-source-id: 6e1d1b1ae6bc63e07112b9dddcdf8e6f812a7f51
This commit is contained in:
parent
e964a7f4ef
commit
8a85546ef9
@ -76,7 +76,7 @@
|
||||
// Throttle progress events so we don't send more that around 60 per second.
|
||||
CFTimeInterval currentTime = CACurrentMediaTime();
|
||||
|
||||
NSUInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] unsignedIntValue] : 0;
|
||||
NSInteger headersContentLength = headers[@"Content-Length"] != nil ? [headers[@"Content-Length"] intValue] : 0;
|
||||
if (callback && (currentTime - _lastDownloadProgress > 0.016 || final)) {
|
||||
_lastDownloadProgress = currentTime;
|
||||
callback(headers, @(headersContentLength), @(contentLength));
|
||||
|
Loading…
x
Reference in New Issue
Block a user