Skip to content

Commit

Permalink
Add module annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lithin authored and plrdev committed Jun 6, 2019
1 parent 34db5e3 commit c1f1e4e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback;
import com.facebook.react.module.annotations.ReactModule;

@ReactModule(name = RNBluetoothManagerModule.MODULE_NAME)
public class RNBluetoothManagerModule extends ReactContextBaseJavaModule {

final static String MODULE_NAME = "RNBluetoothManager";

private final ReactApplicationContext reactContext;

private BluetoothAdapter btAdapter;
Expand All @@ -21,7 +25,7 @@ public RNBluetoothManagerModule(ReactApplicationContext reactContext) {

@Override
public String getName() {
return "RNBluetoothManager";
return this.MODULE_NAME;
}

@ReactMethod
Expand Down

0 comments on commit c1f1e4e

Please sign in to comment.