Skip to content

Commit

Permalink
fix(🐛): Spread op not supported on UI thread (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Oct 9, 2020
1 parent 01e047b commit 602d176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Array.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const move = <T>(input: T[], from: number, to: number) => {
"worklet";
const offsets = [...input];
const offsets = input.slice();
while (from < 0) {
from += offsets.length;
}
Expand Down

0 comments on commit 602d176

Please sign in to comment.