在React Native应用中我们可以使用WebView来构建Web页面。传递自定义表头header配置ReactNative应用程序时请示页面发送自定义请求表头let customHeaders = {
"X-DemoApp-Version": "1.1",
"X-DemoApp-Type": "demo-app-react-native"
}在调用WebView组件时我们可以调用customHeadersAndroid传递user agentios传弟user agent,需要修改AppDelegate.mNSString *newAgent = @"demo-react-native-app";
NSDictionary *dictionary = [[NSDictionary...