mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-06 21:13:17 +00:00
fix: getPointAtLength signature
make first parameter a number instead of options object
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user