Java 类com.facebook.react.bridge.ReadableNativeArray 实例源码

项目:RNLearn_Project1    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  ModuleHolder moduleHolder = new ModuleHolder("MethodsModule",
    false,
    false,
    false,
    false,
    new Provider<MethodsModule>() {
      MethodsModule mModule;
      @Override
      public MethodsModule get() {
        mModule = new MethodsModule();
        return mModule;
      }
    });
  mWrapper = new JavaModuleWrapper(null, MethodsModule.class, moduleHolder);
  mMethods = mWrapper.getMethodDescriptors();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:RNLearn_Project1    文件:JavaModuleWrapper.java   
@DoNotStrip
public void invoke(ExecutorToken token, int methodId, ReadableNativeArray parameters) {
  if (mMethods == null || methodId >= mMethods.size()) {
    return;
  }

  mMethods.get(methodId).invoke(mJSInstance, token, parameters);
}
项目:RNLearn_Project1    文件:JavaModuleWrapper.java   
@DoNotStrip
public void invoke(ExecutorToken token, int methodId, ReadableNativeArray parameters) {
  if (mMethods == null || methodId >= mMethods.size()) {
    return;
  }

  mMethods.get(methodId).invoke(mJSInstance, token, parameters);
}
项目:Ironman    文件:JavaModuleWrapper.java   
@DoNotStrip
public void invoke(ExecutorToken token, int methodId, ReadableNativeArray parameters) {
  if (mMethods == null || methodId >= mMethods.size()) {
    return;
  }

  mMethods.get(methodId).invoke(mCatalystInstance, token, parameters);
}
项目:react-native-sentry    文件:RNSentryModule.java   
private static void addExceptionInterface(EventBuilder eventBuilder, String type, String value, ReadableNativeArray stack) {
    StackTraceInterface stackTraceInterface = new StackTraceInterface(convertToNativeStacktrace(stack));
    Deque<SentryException> exceptions = new ArrayDeque<>();

    exceptions.push(new SentryException(value, type, "", stackTraceInterface));

    eventBuilder.withSentryInterface(new ExceptionInterface(exceptions));
}
项目:react-native-admob    文件:RNPublisherBannerViewManager.java   
@ReactProp(name = PROP_VALID_AD_SIZES)
public void setPropValidAdSizes(final ReactPublisherAdView view, final ReadableArray adSizeStrings) {
    ReadableNativeArray nativeArray = (ReadableNativeArray)adSizeStrings;
    ArrayList<Object> list = nativeArray.toArrayList();
    String[] adSizeStringsArray = list.toArray(new String[list.size()]);
    AdSize[] adSizes = new AdSize[list.size()];

    for (int i = 0; i < adSizeStringsArray.length; i++) {
            String adSizeString = adSizeStringsArray[i];
            adSizes[i] = getAdSizeFromString(adSizeString);
    }
    view.setValidAdSizes(adSizes);
}
项目:RNLearn_Project1    文件:JSCJavaScriptExecutor.java   
public JSCJavaScriptExecutor(ReadableNativeArray jscConfig) {
  super(initHybrid(jscConfig));
}
项目:RNLearn_Project1    文件:JSCJavaScriptExecutor.java   
public JSCJavaScriptExecutor(ReadableNativeArray jscConfig) {
  super(initHybrid(jscConfig));
}
项目:RNLearn_Project1    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  mMethods = new MethodsModule().getMethods();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:ReactNativeSignatureExample    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  mMethods = new MethodsModule().getMethods();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:react-native-ibeacon-android    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  mMethods = new MethodsModule().getMethods();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:magnet-client    文件:ApiMagnetReact.java   
static private Object fromReactArgument(Object object) {
    if (object instanceof ReadableNativeArray) return ((ReadableNativeArray) object).toArrayList();
    else if (object instanceof ReadableNativeMap) return ((ReadableNativeMap) object).toHashMap();
    else return null;
}
项目:react-native-box-loaders    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  mMethods = new MethodsModule().getMethods();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:Ironman    文件:CxxModuleWrapper.java   
@Override
public native void invoke(
    CatalystInstance catalystInstance,
    ExecutorToken executorToken,
    ReadableNativeArray args);
项目:Ironman    文件:JSCJavaScriptExecutor.java   
public JSCJavaScriptExecutor(ReadableNativeArray jscConfig) {
  super(initHybrid(jscConfig));
}
项目:Ironman    文件:BaseJavaModuleTest.java   
@Before
public void setup() {
  mMethods = new MethodsModule().getMethods();
  PowerMockito.mockStatic(SoLoader.class);
  mArguments = PowerMockito.mock(ReadableNativeArray.class);
}
项目:react-native-admob    文件:RNPublisherBannerViewManager.java   
@ReactProp(name = PROP_TEST_DEVICES)
public void setPropTestDevices(final ReactPublisherAdView view, final ReadableArray testDevices) {
    ReadableNativeArray nativeArray = (ReadableNativeArray)testDevices;
    ArrayList<Object> list = nativeArray.toArrayList();
    view.setTestDevices(list.toArray(new String[list.size()]));
}
项目:react-native-admob    文件:RNAdMobBannerViewManager.java   
@ReactProp(name = PROP_TEST_DEVICES)
public void setPropTestDevices(final ReactAdView view, final ReadableArray testDevices) {
    ReadableNativeArray nativeArray = (ReadableNativeArray)testDevices;
    ArrayList<Object> list = nativeArray.toArrayList();
    view.setTestDevices(list.toArray(new String[list.size()]));
}
项目:react-native-admob    文件:RNAdMobRewardedVideoAdModule.java   
@ReactMethod
public void setTestDevices(ReadableArray testDevices) {
  ReadableNativeArray nativeArray = (ReadableNativeArray)testDevices;
  ArrayList<Object> list = nativeArray.toArrayList();
  this.testDevices = list.toArray(new String[list.size()]);
}
项目:react-native-admob    文件:RNAdMobInterstitialAdModule.java   
@ReactMethod
public void setTestDevices(ReadableArray testDevices) {
    ReadableNativeArray nativeArray = (ReadableNativeArray)testDevices;
    ArrayList<Object> list = nativeArray.toArrayList();
    this.testDevices = list.toArray(new String[list.size()]);
}
项目:RNLearn_Project1    文件:JSCJavaScriptExecutor.java   
private native static HybridData initHybrid(ReadableNativeArray jscConfig);
项目:RNLearn_Project1    文件:JSCJavaScriptExecutor.java   
private native static HybridData initHybrid(ReadableNativeArray jscConfig);
项目:Ironman    文件:JSCJavaScriptExecutor.java   
private native static HybridData initHybrid(ReadableNativeArray jscConfig);