Skip to content

Commit

Permalink
fix: getPointAtLength signature
Browse files Browse the repository at this point in the history
make first parameter a number instead of options object
  • Loading branch information
msand committed Oct 4, 2019
1 parent 2ba64df commit 2c57af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/elements/Shape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ export default class Shape<P> extends Component<P> {
const handle = findNodeHandle(this.root as Component);
RNSVGRenderableManager.getTotalLength(handle, callback);
};
getPointAtLength = (options: Object, callback: () => void) => {
getPointAtLength = (length: number, callback: () => void) => {
if (!callback) {
return;
}
const handle = findNodeHandle(this.root as Component);
RNSVGRenderableManager.getPointAtLength(handle, options, callback);
RNSVGRenderableManager.getPointAtLength(handle, { length }, callback);
};
}

0 comments on commit 2c57af2

Please sign in to comment.