Use C++17 feature - structured bindings
Summary: Changelog: [internal] Trying out C++ 17 feature: structured bindings. Reviewed By: PeteTheHeat Differential Revision: D27462634 fbshipit-source-id: 336f771e9579124f429ec648ee418f7ac52cd6a3
This commit is contained in:
Родитель
9a9e7f917b
Коммит
1739ab5ec2
|
@ -241,9 +241,9 @@ static ModalHostViewEventEmitter::OnOrientationChange onOrientationChangeStruct(
|
|||
self.viewController.supportedInterfaceOrientations = supportedOrientationsMask(newProps.supportedOrientations);
|
||||
#endif
|
||||
|
||||
std::tuple<BOOL, UIModalTransitionStyle> result = animationConfiguration(newProps.animationType);
|
||||
_shouldAnimatePresentation = std::get<0>(result);
|
||||
self.viewController.modalTransitionStyle = std::get<1>(result);
|
||||
auto const [shouldAnimate, transitionStyle] = animationConfiguration(newProps.animationType);
|
||||
_shouldAnimatePresentation = shouldAnimate;
|
||||
self.viewController.modalTransitionStyle = transitionStyle;
|
||||
|
||||
self.viewController.modalPresentationStyle = presentationConfiguration(newProps);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче