I want to modify the user agent string in a WebView so that on the server side I can detect that the request has come from my react-native app. I want to do this using the sourc
This library now provides a method to get the userAgent for both ios and android:
https://github.com/react-native-community/react-native-device-info#getuseragent
this.state = { userAgent: "", } componentDidMount = async () => { this.setState({ userAgent: await DeviceInfo.getUserAgent() }) }