Add `@ReactModule` annotation and `NAME` constant (#122)

This will eventually be used by TurboModules annotation processor.
This commit is contained in:
Janic Duplessis 2019-09-27 04:53:02 -04:00 committed by Vojtech Novak
parent 5ff6f679ee
commit 33453615d3
1 changed files with 5 additions and 1 deletions

View File

@ -24,14 +24,18 @@ import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableMapKeySetIterator;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.module.annotations.ReactModule;
import java.lang.reflect.InvocationTargetException;
@ReactModule(name = DialogAndroid.NAME)
public class DialogAndroid extends ReactContextBaseJavaModule {
public static final String NAME = "DialogAndroid";
@Override
public String getName() {
return "DialogAndroid";
return NAME;
}
public DialogAndroid(ReactApplicationContext reactContext) {