From 602d176690eb5297371b863cdda41cdf5829efb0 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Fri, 9 Oct 2020 16:19:47 +0200 Subject: [PATCH] =?UTF-8?q?fix(=F0=9F=90=9B):=20Spread=20op=20not=20suppor?= =?UTF-8?q?ted=20on=20UI=20thread=20(#372)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Array.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Array.ts b/src/Array.ts index a877332d..41d6b097 100644 --- a/src/Array.ts +++ b/src/Array.ts @@ -1,6 +1,6 @@ export const move = (input: T[], from: number, to: number) => { "worklet"; - const offsets = [...input]; + const offsets = input.slice(); while (from < 0) { from += offsets.length; }