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 __codegen__1__location = jsi::Object(runtime);
{
auto source = jsi::Object(runtime);
source.setProperty(runtime, \\"url\\", event.location.source.url);
location.setProperty(runtime, \\"source\\", source);
auto __codegen__2__source = jsi::Object(runtime);
__codegen__2__source.setProperty(runtime, \\"url\\", event.location.source.url);
__codegen__1__location.setProperty(runtime, \\"source\\", __codegen__2__source);
}
location.setProperty(runtime, \\"x\\", event.location.x);
location.setProperty(runtime, \\"y\\", event.location.y);
__codegen__1__location.setProperty(runtime, \\"x\\", event.location.x);
__codegen__1__location.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 __codegen__3__arrayOfObjects = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t __codegen__4__arrayOfObjectsIndex = 0;
for (auto __codegen__5__arrayOfObjectsValue : event.location.arrayOfObjects) {
auto __codegen__6__arrayOfObjectsObject = jsi::Object(runtime);
{
auto value = jsi::Object(runtime);
value.setProperty(runtime, \\"str\\", arrayOfObjectsValue.value.str);
arrayOfObjectsObject.setProperty(runtime, \\"value\\", value);
auto __codegen__7__value = jsi::Object(runtime);
__codegen__7__value.setProperty(runtime, \\"str\\", __codegen__5__arrayOfObjectsValue.value.str);
__codegen__6__arrayOfObjectsObject.setProperty(runtime, \\"value\\", __codegen__7__value);
}
arrayOfObjects.setValueAtIndex(runtime, arrayOfObjectsIndex++, arrayOfObjectsObject);
__codegen__3__arrayOfObjects.setValueAtIndex(runtime, __codegen__4__arrayOfObjectsIndex++, __codegen__6__arrayOfObjectsObject);
}
location.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects);
__codegen__1__location.setProperty(runtime, \\"arrayOfObjects\\", __codegen__3__arrayOfObjects);

payload.setProperty(runtime, \\"location\\", location);
payload.setProperty(runtime, \\"location\\", __codegen__1__location);
}
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 __codegen__1__location = jsi::Object(runtime);
{
auto source = jsi::Object(runtime);
source.setProperty(runtime, \\"url\\", event.location.source.url);
location.setProperty(runtime, \\"source\\", source);
auto __codegen__2__source = jsi::Object(runtime);
__codegen__2__source.setProperty(runtime, \\"url\\", event.location.source.url);
__codegen__1__location.setProperty(runtime, \\"source\\", __codegen__2__source);
}
location.setProperty(runtime, \\"x\\", event.location.x);
location.setProperty(runtime, \\"y\\", event.location.y);
__codegen__1__location.setProperty(runtime, \\"x\\", event.location.x);
__codegen__1__location.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 __codegen__3__arrayOfObjects = jsi::Array(runtime, event.location.arrayOfObjects.size());
size_t __codegen__4__arrayOfObjectsIndex = 0;
for (auto __codegen__5__arrayOfObjectsValue : event.location.arrayOfObjects) {
auto __codegen__6__arrayOfObjectsObject = jsi::Object(runtime);
{
auto value = jsi::Object(runtime);
value.setProperty(runtime, \\"str\\", arrayOfObjectsValue.value.str);
arrayOfObjectsObject.setProperty(runtime, \\"value\\", value);
auto __codegen__7__value = jsi::Object(runtime);
__codegen__7__value.setProperty(runtime, \\"str\\", __codegen__5__arrayOfObjectsValue.value.str);
__codegen__6__arrayOfObjectsObject.setProperty(runtime, \\"value\\", __codegen__7__value);
}
arrayOfObjects.setValueAtIndex(runtime, arrayOfObjectsIndex++, arrayOfObjectsObject);
__codegen__3__arrayOfObjects.setValueAtIndex(runtime, __codegen__4__arrayOfObjectsIndex++, __codegen__6__arrayOfObjectsObject);
}
location.setProperty(runtime, \\"arrayOfObjects\\", arrayOfObjects);
__codegen__1__location.setProperty(runtime, \\"arrayOfObjects\\", __codegen__3__arrayOfObjects);

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