mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix NVC for RCTModalHostView
Summary:
## iOS Failure
```
LOG SVC RCTModalHostView Invalid
LOG {
"missing": {},
"unexpected": {
"validAttributes": {
"statusBarTranslucent": true,
"hardwareAccelerated": true,
"animated": true
}
},
"unequal": {}
}
```
Reviewed By: sshic
Differential Revision: D33409398
fbshipit-source-id: 4651878207d0dca1a559fef2191f7538217c093a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
28f5abc717
commit
6b42bcc1f4
@@ -25,6 +25,11 @@
|
||||
@property (nonatomic, copy) RCTDirectEventBlock onShow;
|
||||
@property (nonatomic, assign) BOOL visible;
|
||||
|
||||
// Android only
|
||||
@property (nonatomic, assign) BOOL statusBarTranslucent;
|
||||
@property (nonatomic, assign) BOOL hardwareAccelerated;
|
||||
@property (nonatomic, assign) BOOL animated;
|
||||
|
||||
@property (nonatomic, copy) NSNumber *identifier;
|
||||
|
||||
@property (nonatomic, weak) id<RCTModalHostViewInteractor> delegate;
|
||||
|
||||
@@ -116,6 +116,9 @@ RCT_EXPORT_MODULE()
|
||||
RCT_EXPORT_VIEW_PROPERTY(animationType, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(presentationStyle, UIModalPresentationStyle)
|
||||
RCT_EXPORT_VIEW_PROPERTY(transparent, BOOL)
|
||||
RCT_EXPORT_VIEW_PROPERTY(statusBarTranslucent, BOOL)
|
||||
RCT_EXPORT_VIEW_PROPERTY(hardwareAccelerated, BOOL)
|
||||
RCT_EXPORT_VIEW_PROPERTY(animated, BOOL)
|
||||
RCT_EXPORT_VIEW_PROPERTY(onShow, RCTDirectEventBlock)
|
||||
RCT_EXPORT_VIEW_PROPERTY(identifier, NSNumber)
|
||||
RCT_EXPORT_VIEW_PROPERTY(supportedOrientations, NSArray)
|
||||
|
||||
Reference in New Issue
Block a user