Files
react-native/ReactCommon/react/renderer/components/inputaccessory/InputAccessoryState.h
T
Samuel Susla 258387ddaa Use window size instead of screen size in InputAccessoryView
Summary:
Changelog: [internal]

Use window size instead of screen size to layout InputAccessoryView.

Reviewed By: PeteTheHeat

Differential Revision: D23297141

fbshipit-source-id: d6d7223342d17a2e1b9e5fca6f999b7ad365d056
2020-08-25 06:50:34 -07:00

30 lines
658 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.
*/
#pragma once
#include <react/renderer/graphics/Float.h>
#include <react/renderer/graphics/Geometry.h>
#include <react/renderer/graphics/conversions.h>
namespace facebook {
namespace react {
/*
* State for <InputAccessoryView> component.
*/
class InputAccessoryState final {
public:
InputAccessoryState(){};
InputAccessoryState(Size viewportSize_) : viewportSize(viewportSize_){};
const Size viewportSize{};
};
} // namespace react
} // namespace facebook