Created
February 20, 2020 12:48
-
-
Save SeanZoR/f3412d55e8c4d36475248e39a7d784b7 to your computer and use it in GitHub Desktop.
Android's react-native-webview that doesn't flood the accessibility/UIAutomator2/Appium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* If the WebView is causing constant refreshes to UI, and Appium/UIAutomator2 chokes on it, | |
* Use this. (To be given as a constructor argument to {@link RNCWebViewManager}.) | |
*/ | |
public class WebViewAccessibilityIgnore implements WebViewConfig { | |
@Override | |
void configWebView(WebView webView){ | |
webView.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment