Skip to content

Instantly share code, notes, and snippets.

@hurali97
Created April 12, 2022 21:19
Show Gist options
  • Save hurali97/4ea5117be0b6d0e438e3b543259b9667 to your computer and use it in GitHub Desktop.
Save hurali97/4ea5117be0b6d0e438e3b543259b9667 to your computer and use it in GitHub Desktop.
Dlog module file which inherits NativeDlogSpec.java
package com.rearchdemo.custommodules;
import com.facebook.react.bridge.ReactApplicationContext;
import android.util.Log;
public class Dlog extends NativeDlogSpec {
private static final String TAG = "Dlog";
public static final String NAME = "Dlog";
@Override
public String getName() {
return NAME;
}
public Dlog(ReactApplicationContext context) {
super(context);
}
@Override
public void log(String message) {
Log.d(TAG, message);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment