mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 11:41:08 +00:00
feat(android): add minimum font size (#2279)
This commit is contained in:
@@ -646,6 +646,11 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
|
||||
}
|
||||
}
|
||||
|
||||
@ReactProp(name = "minimumFontSize")
|
||||
public void setMinimumFontSize(WebView view, int fontSize) {
|
||||
view.getSettings().setMinimumFontSize(fontSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addEventEmitters(ThemedReactContext reactContext, WebView view) {
|
||||
// Do not register default touch emitter and let WebView implementation handle touches
|
||||
|
||||
Reference in New Issue
Block a user