mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 05:18:50 +08:00
Summary: Small changes to State objects to support Android. See following diffs. Reviewed By: mdvacca Differential Revision: D14663470 fbshipit-source-id: 878f4dc39265991a7b8ff54ca80bdb862f1dd3de
31 lines
654 B
C++
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
|