Skip to content

Commit

Permalink
[TurboModule] Implement the generated native spec interface
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Feb 28, 2022
1 parent ba3f2a4 commit a0cf888
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.rnnewarchitectureapp.modules;

import androidx.annotation.NonNull;

import com.facebook.react.bridge.ReactApplicationContext;
import com.rnnewarchitectureapp.codegen.NativeAnswerSolverSpec;

public class NativeAnswerSolver extends NativeAnswerSolverSpec {

public static final String NAME = "NativeAnswerSolver";

public NativeAnswerSolver(ReactApplicationContext reactContext) {
super(reactContext);
}

@Override
public double answerTheUltimateQuestion(String input) {
return 42.0;
}

@NonNull
@Override
public String getName() {
return NAME;
}
}

0 comments on commit a0cf888

Please sign in to comment.