diff --git a/ReactCommon/jsi/jsi/JSIDynamic.cpp b/ReactCommon/jsi/jsi/JSIDynamic.cpp index fc08ddc35d4..e2dd4f11fb5 100644 --- a/ReactCommon/jsi/jsi/JSIDynamic.cpp +++ b/ReactCommon/jsi/jsi/JSIDynamic.cpp @@ -41,7 +41,10 @@ Value valueFromDynamic(Runtime& runtime, const folly::dynamic& dyn) { for (const auto& element : dyn.items()) { Value value = valueFromDynamic(runtime, element.second); if (element.first.isNumber() || element.first.isString()) { - ret.setProperty(runtime, element.first.asString().c_str(), value); + ret.setProperty( + runtime, + PropNameID::forUtf8(runtime, element.first.asString()), + value); } } return std::move(ret);