mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Replace js Dimensions with shadow view in InputAccessoryViewExample
Reviewed By: mmmulani Differential Revision: D7196168 fbshipit-source-id: 031ed5ab24d1075f775ec71e5b78d32e03fe8f6f
This commit is contained in:
committed by
Facebook Github Bot
parent
8e85bf84e8
commit
139d554c48
@@ -7,6 +7,7 @@
|
||||
|
||||
#import "RCTInputAccessoryViewManager.h"
|
||||
|
||||
#import "RCTInputAccessoryShadowView.h"
|
||||
#import "RCTInputAccessoryView.h"
|
||||
|
||||
@implementation RCTInputAccessoryViewManager
|
||||
@@ -23,6 +24,11 @@ RCT_EXPORT_MODULE()
|
||||
return [[RCTInputAccessoryView alloc] initWithBridge:self.bridge];
|
||||
}
|
||||
|
||||
- (RCTShadowView *)shadowView
|
||||
{
|
||||
return [RCTInputAccessoryShadowView new];
|
||||
}
|
||||
|
||||
RCT_REMAP_VIEW_PROPERTY(backgroundColor, inputAccessoryView.backgroundColor, UIColor)
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user