feat(android): add minimum font size (#2279)

This commit is contained in:
theofournier
2022-01-07 18:48:23 -08:00
committed by GitHub
parent c42db6b614
commit a12e231121
3 changed files with 27 additions and 0 deletions
@@ -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