bebnev / react-native-user-agent

Library that helps you to get mobile application user agent and web view user agent strings
MIT License
42 stars 42 forks source link

Create UserAgent from Dictionary #16

Open anthonycmain opened 4 years ago

anthonycmain commented 4 years ago

It would be great to be able to have a method to "append" a parameter to the UserAgent string as well.

E.g. Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1 MyParameter/1.0

pke commented 4 years ago

How about: getUserAgent(ua => ua + " MyParameter/1.0")