Created
April 12, 2022 21:19
-
-
Save hurali97/4ea5117be0b6d0e438e3b543259b9667 to your computer and use it in GitHub Desktop.
Dlog module file which inherits NativeDlogSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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