2015-03-23 22:07:33 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-03-11 02:11:28 +00:00
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
@class ALAssetsLibrary;
|
|
|
|
@class UIImage;
|
|
|
|
|
|
|
|
@interface RCTImageLoader : NSObject
|
|
|
|
|
|
|
|
+ (ALAssetsLibrary *)assetsLibrary;
|
2015-05-11 20:08:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Can be called from any thread.
|
|
|
|
* Will always call callback on main thread.
|
|
|
|
*/
|
2015-05-11 16:13:47 +00:00
|
|
|
+ (void)loadImageWithTag:(NSString *)tag
|
|
|
|
callback:(void (^)(NSError *error, id /* UIImage or CAAnimation */ image))callback;
|
2015-03-11 02:11:28 +00:00
|
|
|
|
|
|
|
@end
|