Files
react-native/ReactCommon/fabric/core/state/StateData.cpp
Joshua Gross 1592acd4a9 Small changes to State objects to support Android
Summary: Small changes to State objects to support Android. See following diffs.

Reviewed By: mdvacca

Differential Revision: D14663470

fbshipit-source-id: 878f4dc39265991a7b8ff54ca80bdb862f1dd3de
2019-03-29 01:17:19 -07:00

31 lines
654 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 "StateData.h"
#ifdef ANDROID
#include <folly/dynamic.h>
#endif
namespace facebook {
namespace react {
#ifdef ANDROID
StateData::~StateData() {
// This needs to be here or the linker will complain:
// https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_vtable
}
const folly::dynamic StateData::getDynamic() const {
assert(false); // TODO: get rid of this?
return folly::dynamic::object();
}
#endif
} // namespace react
} // namespace facebook