Skip to content

Commit db42fda

Browse files
Gilson Takaasi Gilmeta-codesync[bot]
authored andcommitted
Revert D123601668: Make ModalHostViewUtils header private
Differential Revision: D123601668 Original commit changeset: c847a73a532f Original Phabricator Diff: D123601668 fbshipit-source-id: 9b6312d729c8fb2f7bf264ee745f99689221dcd0
1 parent 4394c07 commit db42fda

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

‎packages/react-native/ReactCommon/react/renderer/components/modal/ModalHostViewState.cpp‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
*/
77

88
#include "ModalHostViewState.h"
9-
#include "ModalHostViewUtils.h"
109

1110
namespace facebook::react {
1211

13-
ModalHostViewState::ModalHostViewState()
14-
: screenSize(ModalHostViewScreenSize()) {}
15-
1612
#ifdef RN_SERIALIZABLE_STATE
1713
folly::dynamic ModalHostViewState::getDynamic() const {
1814
return folly::dynamic::object("screenWidth", screenSize.width)(

‎packages/react-native/ReactCommon/react/renderer/components/modal/ModalHostViewState.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99

1010
#include <react/cxxstableapi/FrameworksGuard.h>
1111

12-
#include <React/Graphics.h>
1312
#include <React/RendererCore.h>
13+
#include <react/renderer/graphics/Float.h>
14+
#include "ModalHostViewUtils.h"
1415

1516
#ifdef RN_SERIALIZABLE_STATE
1617
#include <folly/dynamic.h>
@@ -25,7 +26,7 @@ class ModalHostViewState final {
2526
public:
2627
using Shared = std::shared_ptr<const ModalHostViewState>;
2728

28-
ModalHostViewState();
29+
ModalHostViewState() : screenSize(ModalHostViewScreenSize()) {}
2930
ModalHostViewState(Size screenSize_) : screenSize(screenSize_) {};
3031

3132
#ifdef RN_SERIALIZABLE_STATE

‎packages/react-native/ReactCommon/react/renderer/components/modal/ModalHostViewUtils.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#include <react/cxxstableapi/PrivateGuard.h>
10+
#include <react/cxxstableapi/FrameworksGuard.h>
1111

1212
#include <react/renderer/graphics/Size.h>
1313

0 commit comments

Comments
 (0)