Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
*/

#include "ModalHostViewState.h"
#include "ModalHostViewUtils.h"

namespace facebook::react {

ModalHostViewState::ModalHostViewState()
: screenSize(ModalHostViewScreenSize()) {}

#ifdef RN_SERIALIZABLE_STATE
folly::dynamic ModalHostViewState::getDynamic() const {
return folly::dynamic::object("screenWidth", screenSize.width)(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

#include <react/cxxstableapi/FrameworksGuard.h>

#include <React/Graphics.h>
#include <React/RendererCore.h>
#include <react/renderer/graphics/Float.h>
#include "ModalHostViewUtils.h"

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

ModalHostViewState() : screenSize(ModalHostViewScreenSize()) {}
ModalHostViewState();
ModalHostViewState(Size screenSize_) : screenSize(screenSize_) {};

#ifdef RN_SERIALIZABLE_STATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <react/cxxstableapi/FrameworksGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

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

Expand Down
Loading