mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
532afbde6e
Summary: This diff implements Modal for Android in Fabric Reviewed By: JoshuaGross Differential Revision: D15069863 fbshipit-source-id: 4171c9590a4a7a1f4f80cf9b08ea9a9e94b9097a
27 lines
579 B
C++
27 lines
579 B
C++
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "ModalHostViewState.h"
|
|
#include <glog/logging.h>
|
|
|
|
#ifdef ANDROID
|
|
#include <folly/dynamic.h>
|
|
#endif
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
#ifdef ANDROID
|
|
const folly::dynamic ModalHostViewState::getDynamic() const {
|
|
return folly::dynamic::object("screenWidth", screenSize.width)(
|
|
"screenHeight", screenSize.height);
|
|
}
|
|
#endif
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|