Skip to content

Commit

Permalink
Adds addListener and removeListeners react methods to android module (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoPlz authored Mar 12, 2024
1 parent 2157844 commit 493f397
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -709,6 +709,16 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) :
)
terminal.setReaderSettings(readerSettingsParameters, RNReadSettingsCallback(promise))
}

@ReactMethod
fun addListener(eventName: String?) {
// Set up any upstream listeners or background tasks as necessary
}

@ReactMethod
fun removeListeners(count: Int?) {
// Remove upstream listeners, stop unnecessary background tasks
}

private fun cancelOperation(
promise: Promise,

0 comments on commit 493f397

Please sign in to comment.