An open API service indexing awesome lists of open source software.

https://github.com/mehcode/rn-ios-user-agent

Set (and unset) a UserAgent to be used in WebView.
https://github.com/mehcode/rn-ios-user-agent

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

```js
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();
```