Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,29 +153,29 @@ void EventNestedObjectPropsNativeComponentViewEventEmitter::onChange(OnChange ev
dispatchEvent(\\"change\\", [event=std::move(event)](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
{
auto location = jsi::Object(runtime);
auto location_codegen1 = jsi::Object(runtime);
{
auto source = jsi::Object(runtime);
source.setProperty(runtime, \\"url\\", event.location.source.url);
location.setProperty(runtime, \\"source\\", source);
auto source_codegen2 = jsi::Object(runtime);
source_codegen2.setProperty(runtime, \\"url\\", event.location.source.url);
location_codegen1.setProperty(runtime, \\"source\\", source_codegen2);
}
location.setProperty(runtime, \\"x\\", event.location.x);
location.setProperty(runtime, \\"y\\", event.location.y);
location_codegen1.setProperty(runtime, \\"x\\", event.location.x);
location_codegen1.setProperty(runtime, \\"y\\", event.location.y);

auto arrayOfObjects = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t arrayOfObjectsIndex = 0;
for (auto arrayOfObjectsValue : event.location.arrayOfObjects) {
auto arrayOfObjectsObject = jsi::Object(runtime);
auto arrayOfObjects_codegen3 = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t arrayOfObjectsIndex_codegen4 = 0;
for (auto arrayOfObjectsValue_codegen5 : event.location.arrayOfObjects) {
auto arrayOfObjectsObject_codegen6 = jsi::Object(runtime);
{
auto value = jsi::Object(runtime);
value.setProperty(runtime, \\"str\\", arrayOfObjectsValue.value.str);
arrayOfObjectsObject.setProperty(runtime, \\"value\\", value);
auto value_codegen7 = jsi::Object(runtime);
value_codegen7.setProperty(runtime, \\"str\\", arrayOfObjectsValue_codegen5.value.str);
arrayOfObjectsObject_codegen6.setProperty(runtime, \\"value\\", value_codegen7);
}
arrayOfObjects.setValueAtIndex(runtime, arrayOfObjectsIndex++, arrayOfObjectsObject);
arrayOfObjects_codegen3.setValueAtIndex(runtime, arrayOfObjectsIndex_codegen4++, arrayOfObjectsObject_codegen6);
}
location.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects);
location_codegen1.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects_codegen3);

payload.setProperty(runtime, \\"location\\", location);
payload.setProperty(runtime, \\"location\\", location_codegen1);
}
return payload;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,29 +153,29 @@ void EventNestedObjectPropsNativeComponentViewEventEmitter::onChange(OnChange ev
dispatchEvent(\\"change\\", [event=std::move(event)](jsi::Runtime &runtime) {
auto payload = jsi::Object(runtime);
{
auto location = jsi::Object(runtime);
auto location_codegen1 = jsi::Object(runtime);
{
auto source = jsi::Object(runtime);
source.setProperty(runtime, \\"url\\", event.location.source.url);
location.setProperty(runtime, \\"source\\", source);
auto source_codegen2 = jsi::Object(runtime);
source_codegen2.setProperty(runtime, \\"url\\", event.location.source.url);
location_codegen1.setProperty(runtime, \\"source\\", source_codegen2);
}
location.setProperty(runtime, \\"x\\", event.location.x);
location.setProperty(runtime, \\"y\\", event.location.y);
location_codegen1.setProperty(runtime, \\"x\\", event.location.x);
location_codegen1.setProperty(runtime, \\"y\\", event.location.y);

auto arrayOfObjects = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t arrayOfObjectsIndex = 0;
for (auto arrayOfObjectsValue : event.location.arrayOfObjects) {
auto arrayOfObjectsObject = jsi::Object(runtime);
auto arrayOfObjects_codegen3 = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t arrayOfObjectsIndex_codegen4 = 0;
for (auto arrayOfObjectsValue_codegen5 : event.location.arrayOfObjects) {
auto arrayOfObjectsObject_codegen6 = jsi::Object(runtime);
{
auto value = jsi::Object(runtime);
value.setProperty(runtime, \\"str\\", arrayOfObjectsValue.value.str);
arrayOfObjectsObject.setProperty(runtime, \\"value\\", value);
auto value_codegen7 = jsi::Object(runtime);
value_codegen7.setProperty(runtime, \\"str\\", arrayOfObjectsValue_codegen5.value.str);
arrayOfObjectsObject_codegen6.setProperty(runtime, \\"value\\", value_codegen7);
}
arrayOfObjects.setValueAtIndex(runtime, arrayOfObjectsIndex++, arrayOfObjectsObject);
arrayOfObjects_codegen3.setValueAtIndex(runtime, arrayOfObjectsIndex_codegen4++, arrayOfObjectsObject_codegen6);
}
location.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects);
location_codegen1.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects_codegen3);

payload.setProperty(runtime, \\"location\\", location);
payload.setProperty(runtime, \\"location\\", location_codegen1);
}
return payload;
});
Expand Down
Loading
Loading