mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
feat(android): add props to control pinch to zoom and internal zoom controls (#2113)
Co-authored-by: Mircea Bogdan Stanciu <mirceabogdanstanciu@gmail.com> Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
This commit is contained in:
co-authored by
Mircea Bogdan Stanciu
Thibault Malbranche
parent
2ed1f247fe
commit
b92b98637c
@@ -253,6 +253,16 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
view.getSettings().setJavaScriptEnabled(enabled);
|
||||
}
|
||||
|
||||
@ReactProp(name = "setBuiltInZoomControls")
|
||||
public void setBuiltInZoomControls(WebView view, boolean enabled) {
|
||||
view.getSettings().setBuiltInZoomControls(enabled);
|
||||
}
|
||||
|
||||
@ReactProp(name = "setDisplayZoomControls")
|
||||
public void setDisplayZoomControls(WebView view, boolean enabled) {
|
||||
view.getSettings().setDisplayZoomControls(enabled);
|
||||
}
|
||||
|
||||
@ReactProp(name = "setSupportMultipleWindows")
|
||||
public void setSupportMultipleWindows(WebView view, boolean enabled){
|
||||
view.getSettings().setSupportMultipleWindows(enabled);
|
||||
|
||||
Reference in New Issue
Block a user