Add `@ReactModule` annotation and `NAME` constant (#122)
This will eventually be used by TurboModules annotation processor.
This commit is contained in:
parent
5ff6f679ee
commit
33453615d3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue