mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Fix unused argument warnings
Reviewed By: milend Differential Revision: D2795407 fb-gh-sync-id: 83f5cc10b115eef3becb4ebab56b366f1a12a3ad
This commit is contained in:
parent
81dc490ab3
commit
d7ad393f22
@ -840,7 +840,7 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag
|
||||
UIColor *backgroundColor = shadowView.backgroundColor;
|
||||
|
||||
[self addUIBlock:^(RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry){
|
||||
UIView *view = [componentData createViewWithTag:reactTag props:props];
|
||||
UIView *view = [componentData createViewWithTag:reactTag];
|
||||
if (view) {
|
||||
if ([view respondsToSelector:@selector(setBackgroundColor:)]) {
|
||||
((UIView *)view).backgroundColor = backgroundColor;
|
||||
|
@ -305,7 +305,7 @@ void RCTProfileHookModules(RCTBridge *bridge)
|
||||
RCTProfileHookInstance([bridge.uiManager viewForReactTag:view]);
|
||||
}
|
||||
|
||||
Method createView = class_getInstanceMethod([RCTComponentData class], @selector(createViewWithTag:props:));
|
||||
Method createView = class_getInstanceMethod([RCTComponentData class], @selector(createViewWithTag:));
|
||||
|
||||
if (method_getImplementation(createView) != (IMP)RCTProfileCreateView) {
|
||||
originalCreateView = (typeof(originalCreateView))method_getImplementation(createView);
|
||||
|
@ -26,7 +26,7 @@
|
||||
- (instancetype)initWithManagerClass:(Class)managerClass
|
||||
bridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
- (UIView *)createViewWithTag:(NSNumber *)tag props:(NSDictionary<NSString *, id> *)props;
|
||||
- (UIView *)createViewWithTag:(NSNumber *)tag;
|
||||
- (RCTShadowView *)createShadowViewWithTag:(NSNumber *)tag;
|
||||
- (void)setProps:(NSDictionary<NSString *, id> *)props forView:(id<RCTComponent>)view;
|
||||
- (void)setProps:(NSDictionary<NSString *, id> *)props forShadowView:(RCTShadowView *)shadowView;
|
||||
|
@ -77,7 +77,7 @@ typedef void (^RCTPropBlock)(id<RCTComponent> view, id json);
|
||||
|
||||
RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
|
||||
- (UIView *)createViewWithTag:(NSNumber *)tag props:(NSDictionary<NSString *, id> *)props
|
||||
- (UIView *)createViewWithTag:(NSNumber *)tag
|
||||
{
|
||||
RCTAssertMainThread();
|
||||
|
||||
@ -296,7 +296,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
}
|
||||
|
||||
if (!_defaultView) {
|
||||
_defaultView = [self createViewWithTag:nil props:nil];
|
||||
_defaultView = [self createViewWithTag:nil];
|
||||
}
|
||||
|
||||
[props enumerateKeysAndObjectsUsingBlock:^(NSString *key, id json, __unused BOOL *stop) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user