Skip to content
Merged
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 @@ -154,7 +154,7 @@ class RNMBXChangeLineOffsetsShapeAnimatorModule(
const val NAME = "RNMBXChangeLineOffsetsShapeAnimatorModule"
}

override fun create(
override fun generate(
tag: ViewRefTag,
coordinates: ReadableArray,
startOffset: Double,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RNMBXMovePointShapeAnimatorModule(
}

@ReactMethod
override fun create(tag: ViewRefTag, startCoordinate: ReadableArray, promise: Promise) {
override fun generate(tag: ViewRefTag, startCoordinate: ReadableArray, promise: Promise) {
shapeAnimatorManager.add(
MovePointShapeAnimator(
tag.toLong(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public NativeRNMBXChangeLineOffsetsShapeAnimatorModuleSpec(ReactApplicationConte

@ReactMethod
@DoNotStrip
public abstract void create(double tag, ReadableArray coordinates, double startOffset, double endOffset, Promise promise);
public abstract void generate(double tag, ReadableArray coordinates, double startOffset, double endOffset, Promise promise);

@ReactMethod
@DoNotStrip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public NativeRNMBXMovePointShapeAnimatorModuleSpec(ReactApplicationContext react

@ReactMethod
@DoNotStrip
public abstract void create(double tag, ReadableArray coordinate, Promise promise);
public abstract void generate(double tag, ReadableArray coordinate, Promise promise);

@ReactMethod
@DoNotStrip
Expand Down
2 changes: 1 addition & 1 deletion src/shapeAnimators/ChangeLineOffsetsShapeAnimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class ChangeLineOffsetsShapeAnimator
endOffset: number;
}) {
const tag = ShapeAnimatorManager.nextTag();
NativeRNMBXChangeLineOffsetsShapeAnimatorModule.create(
NativeRNMBXChangeLineOffsetsShapeAnimatorModule.generate(
tag,
args.coordinates,
args.startOffset,
Expand Down
2 changes: 1 addition & 1 deletion src/shapeAnimators/MovePointShapeAnimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class MovePointShapeAnimator implements ShapeAnimatorInterface {

constructor(startCoordinate: Position) {
const tag = ShapeAnimatorManager.nextTag();
NativeRNMBXMovePointShapeAnimatorModule.create(tag, [
NativeRNMBXMovePointShapeAnimatorModule.generate(tag, [
startCoordinate[0],
startCoordinate[1],
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Position } from '@turf/helpers';
type AnimatorTag = Int32;

export interface Spec extends TurboModule {
create(
generate(
tag: AnimatorTag,
coordinates: Position[],
startOffset: Double,
Expand Down
2 changes: 1 addition & 1 deletion src/specs/NativeRNMBXMovePointShapeAnimatorModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TurboModuleRegistry } from 'react-native';
type AnimatorTag = Int32;

export interface Spec extends TurboModule {
create(tag: AnimatorTag, coordinate: ReadonlyArray<Double>): Promise<void>;
generate(tag: AnimatorTag, coordinate: ReadonlyArray<Double>): Promise<void>;
moveTo(
tag: AnimatorTag,
coordinate: ReadonlyArray<Double>,
Expand Down
Loading