mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-04 10:55:04 +08:00
Implement Fabric Reconciler
Reviewed By: achen1 Differential Revision: D7240208 fbshipit-source-id: 236b76146c50fb7f357190b08f8a5bfcef7f6645
This commit is contained in:
committed by
Facebook Github Bot
parent
3f84a0a6f4
commit
7d3de1016a
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user