2018-03-19 02:04:10 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Props.h"
|
|
|
|
|
2018-04-27 00:51:59 +00:00
|
|
|
#include <fabric/core/propsConversions.h>
|
2018-03-19 02:04:10 +00:00
|
|
|
#include <folly/dynamic.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
void Props::apply(const RawProps &rawProps) {
|
|
|
|
ensureUnsealed();
|
|
|
|
|
2018-04-27 00:51:59 +00:00
|
|
|
applyRawProp(rawProps, "nativeID", nativeId_);
|
2018-03-19 02:04:10 +00:00
|
|
|
}
|
|
|
|
|
2018-03-23 23:46:09 +00:00
|
|
|
const std::string &Props::getNativeId() const {
|
|
|
|
return nativeId_;
|
|
|
|
}
|
|
|
|
|
2018-03-19 02:04:10 +00:00
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|