Add support for String props on C++ Components

Summary:
This diff adds support for String props on C++ Components

changelog: [internal] internal

Reviewed By: genkikondo

Differential Revision: D41784029

fbshipit-source-id: 3065186074e1feca3dd0dd724105f1596146ee1d
This commit is contained in:
David Vacca 2022-12-12 20:05:23 -08:00 коммит произвёл Facebook GitHub Bot
Родитель a3c47d3baa
Коммит a120679619
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -20,9 +20,15 @@ class Component {
virtual ~Component() = default;
// Updates the prop with name and value received as a parameter in the
// Updates the prop with name and float value received as a parameter in the
// component
virtual void updateFloatProp(const std::string &propName, float value) = 0;
virtual void updateFloatProp(const std::string &propName, float value){};
// Updates the prop with name and string value received as a parameter in the
// component
virtual void updateStringProp(
const std::string &propName,
const std::string &value){};
// Mounts the child component into the children index received as parameter
virtual void mountChildComponent(