1.1.0 • Published 2 years ago

@mobeuv/react-native-user-agent v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Mobeuv - React Native User Agent

Library that helps you to get mobile application user agent and web view user agent strings

The Package

This package is a fork of (https://github.com/bebnev/react-native-user-agent). All rights to the fork go to the proper authors under the MIT license (https://github.com/bebnev) We created this fork to make the package available with future fixes and new features.

Installation

npm install @mobeuv/react-native-user-agent

yarn add @mobeuv/react-native-user-agent

Usage

import { getUserAgent } from '@mobeuv/react-native-user-agent';

// ...

const result = getUserAgent();

Methods:

MethodDescriptionSupport
getUserAgentReturns the agentAndroid/IOS
getAllReturn all methods and valuesAndroid/IOS
getDarwinVersionReturn Darwin VersionIOS
getConstantsReturn ConstantsAndroid/IOS
getSystemVersionReturn System VersionAndroid

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT