Commit 152945f7 authored by IjzerenHein's avatar IjzerenHein

Fixed build error as also reported in #284

parent 6d0a9cfe
......@@ -174,7 +174,7 @@ public class RNDeviceModule extends ReactContextBaseJavaModule {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
try {
constants.put("userAgent", WebSettings.getDefaultUserAgent(this.reactContext));
} catch (PackageManager.NameNotFoundException e) {
} catch (RuntimeException e) {
constants.put("userAgent", System.getProperty("http.agent"));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment