We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2145e3 + 92777da commit 3705f2bCopy full SHA for 3705f2b
package/cpp/api/JsiSkPath.h
@@ -494,7 +494,7 @@ class JsiSkPath : public JsiSkWrappingSharedPtrHostObject<SkPath> {
494
JSI_HOST_FUNCTION(interpolate) {
495
auto path2 = JsiSkPath::fromValue(runtime, arguments[0]);
496
auto weight = arguments[1].asNumber();
497
- if (count > 2) {
+ if (count > 2 && !arguments[2].isUndefined()) {
498
auto path3 = JsiSkPath::fromValue(runtime, arguments[2]);
499
auto succeed = getObject()->interpolate(*path2, weight, path3.get());
500
if (!succeed) {
0 commit comments