Implement Fabric Reconciler

Reviewed By: achen1

Differential Revision: D7240208

fbshipit-source-id: 236b76146c50fb7f357190b08f8a5bfcef7f6645
This commit is contained in:
David Vacca
2018-03-19 18:21:39 -07:00
committed by Facebook Github Bot
parent 3f84a0a6f4
commit 7d3de1016a
5 changed files with 214 additions and 92 deletions

View File

@@ -1,6 +1,7 @@
package com.facebook.react.common;
import java.util.Arrays;
import java.util.List;
public class ArrayUtils {
@@ -8,4 +9,12 @@ public class ArrayUtils {
return array == null ? null : Arrays.copyOf(array, array.length);
}
public static int[] copyListToArray(List<Integer> list) {
int[] array = new int[list.size()];
for (int t = 0 ; t < list.size() ; t++) {
array[t] = list.get(t);
}
return array;
}
}