// MyFancyLibraryModule.java

package com.reactlibrary;

import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.Callback;
import com.reactlibrary.Greeting;

public class MyFancyLibraryModule extends ReactContextBaseJavaModule {

    private final ReactApplicationContext reactContext;

    public MyFancyLibraryModule(ReactApplicationContext reactContext) {
        super(reactContext);
        this.reactContext = reactContext;
    }

    @Override
    public String getName() {
        return "MyFancyLibrary";
    }

    @ReactMethod
    public static String sampleMethod() {
        return (new Greeting()).greet();
    }
}
