Skip to content

Commit 1739ab5

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
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
1 parent 9a9e7f9 commit 1739ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ - (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &
241241
self.viewController.supportedInterfaceOrientations = supportedOrientationsMask(newProps.supportedOrientations);
242242
#endif
243243

244-
std::tuple<BOOL, UIModalTransitionStyle> result = animationConfiguration(newProps.animationType);
245-
_shouldAnimatePresentation = std::get<0>(result);
246-
self.viewController.modalTransitionStyle = std::get<1>(result);
244+
auto const [shouldAnimate, transitionStyle] = animationConfiguration(newProps.animationType);
245+
_shouldAnimatePresentation = shouldAnimate;
246+
self.viewController.modalTransitionStyle = transitionStyle;
247247

248248
self.viewController.modalPresentationStyle = presentationConfiguration(newProps);
249249

0 commit comments

Comments
 (0)