mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 09:30:10 +08:00
Add dynamic type for javascript arguments passed over bridge with unkown type
Reviewed By: astreet Differential Revision: D4380882 fbshipit-source-id: f1b9fb9cf727d003dcc2264626e75fc300a47dee
This commit is contained in:
committed by
Facebook Github Bot
parent
3b5f04b002
commit
e3c8d80b3c
@@ -11,7 +11,6 @@ package com.facebook.react.bridge;
|
||||
|
||||
import com.facebook.jni.HybridData;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -48,6 +47,11 @@ public class ReadableNativeArray extends NativeArray implements ReadableArray {
|
||||
@Override
|
||||
public native ReadableType getType(int index);
|
||||
|
||||
@Override
|
||||
public Dynamic getDynamic(int index) {
|
||||
return new DynamicFromArray(this, index);
|
||||
}
|
||||
|
||||
public ArrayList<Object> toArrayList() {
|
||||
ArrayList<Object> arrayList = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user