Skip to content

Set (and unset) a UserAgent to be used in WebView.

License

Notifications You must be signed in to change notification settings

swli-nltd/rn-ios-user-agent

 
 

Repository files navigation

React Native iOS UserAgent

Set (and unset) a UserAgent to be used in WebView.

Install

  1. npm install --save rn-ios-user-agent

  2. react-native link rn-ios-user-agent

Usage

import UserAgentIOS from "rn-ios-user-agent";

// Change user agent for all future web views
UserAgentIOS.set("new user agent");

// Go back to system default user agent
UserAgentIOS.unset();

About

Set (and unset) a UserAgent to be used in WebView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 59.6%
  • Ruby 33.7%
  • JavaScript 6.7%