Created
November 19, 2016 12:34
-
-
Save codemilli/cdbd24487b837aeffe239f6559911a8a to your computer and use it in GitHub Desktop.
This file contains hidden or 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.features; | |
import com.facebook.react.bridge.NativeModule; | |
import com.facebook.react.bridge.ReactApplicationContext; | |
import com.facebook.react.bridge.ReactContext; | |
import com.facebook.react.bridge.ReactContextBaseJavaModule; | |
import com.facebook.react.bridge.ReactMethod; | |
import android.util.Log; | |
public class HelloWorld extends ReactContextBaseJavaModule { | |
public HelloWorld(ReactApplicationContext reactContext) { | |
super(reactContext); | |
} | |
@Override | |
public String getName() { | |
return "HelloWorld"; | |
} | |
@ReactMethod | |
public void greeting(String name) { | |
Log.i("HelloWorld", "Hello, " + name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment