mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
# Summary Closes #1442 We want to add new props to the Image Component. ## Test Plan Added the Test component. Manually test that in Android and IOS platforms on new and old Architectures. ### What are the steps to reproduce (after prerequisites)? ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ✅ |
38 lines
1.0 KiB
Objective-C
38 lines
1.0 KiB
Objective-C
/**
|
|
* Copyright (c) 2015-present, Horcrux.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the MIT-style license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <React/RCTBridge.h>
|
|
#import "RNSVGLength.h"
|
|
#import "RNSVGRenderable.h"
|
|
#import "RNSVGVBMOS.h"
|
|
|
|
#import <React/RCTImageSource.h>
|
|
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
#import <React/RCTImageResponseDelegate.h>
|
|
#endif
|
|
|
|
@interface RNSVGImage : RNSVGRenderable
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
<RCTImageResponseDelegate>
|
|
#endif
|
|
|
|
@property (nonatomic, weak) RCTBridge *bridge;
|
|
@property (nonatomic, assign) RCTImageSource *src;
|
|
@property (nonatomic, strong) RNSVGLength *x;
|
|
@property (nonatomic, strong) RNSVGLength *y;
|
|
@property (nonatomic, strong) RNSVGLength *imagewidth;
|
|
@property (nonatomic, strong) RNSVGLength *imageheight;
|
|
@property (nonatomic, strong) NSString *align;
|
|
@property (nonatomic, assign) RNSVGVBMOS meetOrSlice;
|
|
@property (nonatomic, copy) RCTDirectEventBlock onLoad;
|
|
|
|
@end
|