All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.facebook.react.module.annotations.ReactModuleList Maven / Gradle / Ivy

There is a newer version: 0.52.u
Show newest version
// Copyright 2004-present Facebook. All Rights Reserved.

package com.facebook.react.module.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.facebook.react.bridge.NativeModule;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;

/**
 * Annotates a function that returns a list of ModuleSpecs from which we get a list of NativeModules
 * to create ReactModuleInfos from.
 */
@Retention(SOURCE)
@Target(TYPE)
public @interface ReactModuleList {

  /**
   * The native modules in this list should be annotated with {@link ReactModule}.
   * @return List of native modules.
   */
  Class[] value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy