I want this promise value in App.js
class with button click. Please help me in finding out the solution.
@ReactMethodpublic void initTimerService(Promise promise){ TimerService timerService = App42API.buildTimerService(); String timerName = "<Enter_your_timer_name>"; long timeInSeconds= 120; timerService.createOrUpdateTimer(timerName, timeInSeconds, new App42CallBack() { public void onSuccess(Object r) { Log.e(TAG,"response = "+ r); Timer timer = (Timer)response; promise.resolve(timer.getName()); System.out.println("Timer Name is: "+ timer.getName()); System.out.println("Time is: "+ timer.getTimeInSeconds()); } });}