
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;

public class RNTensorflowModule extends ReactContextBaseJavaModule {

  private final ReactApplicationContext reactContext;

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

  @Override
  public String getName() {
    return "RNTensorflow";
  }
}
@@ -197,42 +197,67 @@
 ort 
-com.facebook.react.bridge.Callback
+org.tensorflow.contrib.android.TensorFlowInferenceInterface
 ;%0A%0Ap
@@ -378,16 +378,66 @@
 Context;
+%0A  private TensorFlowInferenceInterface inference;
 %0A%0A  publ
@@ -602,24 +602,24 @@
 getName() %7B%0A
-
     return %22
@@ -636,10 +636,186 @@
 ow%22;%0A  %7D
+%0A%0A  @ReactMethod%0A  public void instantiateTensorflow(String modelFilePath) %7B%0A    this.inference = new TensorFlowInferenceInterface(reactContext.getAssets(), modelFilePath);%0A  %7D
 %0A%7D

Add instantiation code