mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-25 04:35:12 +00:00
21 lines
555 B
Mathematica
21 lines
555 B
Mathematica
|
#import "FFFastImageViewManager.h"
|
||
|
#import "FFFastImageView.h"
|
||
|
|
||
|
@implementation FFFastImageViewManager
|
||
|
|
||
|
RCT_EXPORT_MODULE(FastImageView)
|
||
|
|
||
|
- (FFFastImageView*)view {
|
||
|
FFFastImageView* view = [[FFFastImageView alloc] init];
|
||
|
view.contentMode = (UIViewContentMode) RCTResizeModeContain;
|
||
|
view.clipsToBounds = YES;
|
||
|
return view;
|
||
|
}
|
||
|
|
||
|
RCT_EXPORT_VIEW_PROPERTY(source, FFFastImageSource);
|
||
|
RCT_EXPORT_VIEW_PROPERTY(resizeMode, RCTResizeMode);
|
||
|
RCT_EXPORT_VIEW_PROPERTY(onError, RCTDirectEventBlock);
|
||
|
RCT_EXPORT_VIEW_PROPERTY(onLoad, RCTDirectEventBlock);
|
||
|
|
||
|
@end
|