mirror of
https://github.com/status-im/react-native.git
synced 2025-01-24 16:29:01 +00:00
c623455845
Summary: Foundation clases for Fabric designed to be "const-first". Reviewed By: fkgozali Differential Revision: D7230672 fbshipit-source-id: 433acd35a7958d5d577358b0a306923f970e573f
30 lines
574 B
C++
30 lines
574 B
C++
/**
|
|
* 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"
|
|
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
void Props::apply(const RawProps &rawProps) {
|
|
ensureUnsealed();
|
|
|
|
for (auto const &pair : rawProps) {
|
|
auto const &name = pair.first;
|
|
auto const &value = pair.second;
|
|
|
|
if (name == "nativeID") {
|
|
nativeId_ = value.asString();
|
|
}
|
|
}
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|