33import android .app .Activity ;
44
55import androidx .annotation .NonNull ;
6- import androidx .annotation .Nullable ;
76
87import com .facebook .react .bridge .LifecycleEventListener ;
98import com .facebook .react .bridge .Promise ;
109import com .facebook .react .bridge .ReactApplicationContext ;
1110import com .facebook .react .bridge .ReactContextBaseJavaModule ;
1211import com .facebook .react .bridge .ReactMethod ;
12+ import com .facebook .react .bridge .ReadableMap ;
1313import com .facebook .react .module .annotations .ReactModule ;
1414
1515@ ReactModule (name = RNSwanBrowserModuleImpl .NAME )
@@ -43,11 +43,7 @@ public void onHostPause() {}
4343 public void onHostDestroy () {}
4444
4545 @ 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 ) {
5147 if (mBrowserVisible ) {
5248 promise .reject ("swan_browser_visible" ,
5349 "An instance of the swan browser is already visible" );
@@ -63,7 +59,7 @@ public void open(String url,
6359 }
6460
6561 mBrowserVisible = true ;
66- RNSwanBrowserModuleImpl .open (activity , url , barTintColor , promise );
62+ RNSwanBrowserModuleImpl .open (activity , url , options , promise );
6763 }
6864
6965 @ ReactMethod
0 commit comments