3
3
import android .app .Activity ;
4
4
5
5
import androidx .annotation .NonNull ;
6
- import androidx .annotation .Nullable ;
7
6
8
7
import com .facebook .react .bridge .LifecycleEventListener ;
9
8
import com .facebook .react .bridge .Promise ;
10
9
import com .facebook .react .bridge .ReactApplicationContext ;
11
10
import com .facebook .react .bridge .ReactContextBaseJavaModule ;
12
11
import com .facebook .react .bridge .ReactMethod ;
12
+ import com .facebook .react .bridge .ReadableMap ;
13
13
import com .facebook .react .module .annotations .ReactModule ;
14
14
15
15
@ ReactModule (name = RNSwanBrowserModuleImpl .NAME )
@@ -43,11 +43,7 @@ public void onHostPause() {}
43
43
public void onHostDestroy () {}
44
44
45
45
@ ReactMethod
46
- public void open (String url ,
47
- @ Nullable String dismissButtonStyle ,
48
- @ Nullable Double barTintColor ,
49
- @ Nullable Double controlTintColor ,
50
- Promise promise ) {
46
+ public void open (String url , ReadableMap options , Promise promise ) {
51
47
if (mBrowserVisible ) {
52
48
promise .reject ("swan_browser_visible" ,
53
49
"An instance of the swan browser is already visible" );
@@ -63,7 +59,7 @@ public void open(String url,
63
59
}
64
60
65
61
mBrowserVisible = true ;
66
- RNSwanBrowserModuleImpl .open (activity , url , barTintColor , promise );
62
+ RNSwanBrowserModuleImpl .open (activity , url , options , promise );
67
63
}
68
64
69
65
@ ReactMethod
0 commit comments