Skip to content

Commit 36b8a81

Browse files
committed
Add back close noop
1 parent f4e1f15 commit 36b8a81

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

android/src/newarch/io/swan/rnbrowser/RNSwanBrowserModule.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@ class RNSwanBrowserModule(reactContext: ReactApplicationContext) :
1616
override fun open(url: String, options: ReadableMap, promise: Promise) {
1717
RNSwanBrowserModuleImpl.open(reactApplicationContext, url, options, promise)
1818
}
19+
20+
override fun close() {
21+
// noop on Android since the modal is closed by deep-link
22+
}
1923
}

android/src/oldarch/io/swan/rnbrowser/RNSwanBrowserModule.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,9 @@ class RNSwanBrowserModule(reactContext: ReactApplicationContext) :
1919
fun open(url: String, options: ReadableMap, promise: Promise) {
2020
RNSwanBrowserModuleImpl.open(reactApplicationContext, url, options, promise)
2121
}
22+
23+
@ReactMethod
24+
fun close() {
25+
// noop on Android since the modal is closed by deep-link
26+
}
2227
}

0 commit comments

Comments
 (0)