Skip to content

Commit

Permalink
Add @ReactModule annotation and NAME constant (#122)
Browse files Browse the repository at this point in the history
This will eventually be used by TurboModules annotation processor.
  • Loading branch information
janicduplessis authored and vonovak committed Sep 27, 2019
1 parent 5ff6f67 commit 3345361
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@
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) {
Expand Down

0 comments on commit 3345361

Please sign in to comment.