All Projects → mehcode → rn-ios-user-agent

mehcode / rn-ios-user-agent

Licence: MIT License
Set (and unset) a UserAgent to be used in WebView.

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language
javascript
184084 projects - #8 most used programming language

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();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].