mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix RCTBlobManager require inside RCTFileReaderModule
Summary: RCTBlobManager actually has the name "BlobModule", not "BlobManager". Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D25569865 fbshipit-source-id: f6b41300bda6485cef3f18d3d0308dad9c002b77
This commit is contained in:
committed by
Facebook GitHub Bot
parent
67309277fe
commit
ad75a3fbb0
@@ -31,7 +31,7 @@ RCT_EXPORT_METHOD(readAsText:(NSDictionary<NSString *, id> *)blob
|
||||
resolve:(RCTPromiseResolveBlock)resolve
|
||||
reject:(RCTPromiseRejectBlock)reject)
|
||||
{
|
||||
RCTBlobManager *blobManager = [_moduleRegistry moduleForName:"BlobManager"];
|
||||
RCTBlobManager *blobManager = [_moduleRegistry moduleForName:"BlobModule"];
|
||||
NSData *data = [blobManager resolve:blob];
|
||||
|
||||
if (data == nil) {
|
||||
@@ -56,7 +56,7 @@ RCT_EXPORT_METHOD(readAsDataURL:(NSDictionary<NSString *, id> *)blob
|
||||
resolve:(RCTPromiseResolveBlock)resolve
|
||||
reject:(RCTPromiseRejectBlock)reject)
|
||||
{
|
||||
RCTBlobManager *blobManager = [_moduleRegistry moduleForName:"BlobManager"];
|
||||
RCTBlobManager *blobManager = [_moduleRegistry moduleForName:"BlobModule"];
|
||||
NSData *data = [blobManager resolve:blob];
|
||||
|
||||
if (data == nil) {
|
||||
|
||||
Reference in New Issue
Block a user