feat(android): change default user agent value (#3813)

* feat(android): change default user agent value

* docs: fix headers prop platform
This commit is contained in:
YangJH 2024-05-23 05:59:32 +09:00 committed by GitHub
parent dac0985430
commit 089dc7e032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ public class DataSourceUtil {
public static String getUserAgent(ReactContext context) { public static String getUserAgent(ReactContext context) {
if (userAgent == null) { if (userAgent == null) {
userAgent = Util.getUserAgent(context, "ReactNativeVideo"); userAgent = Util.getUserAgent(context, context.getPackageName());
} }
return userAgent; return userAgent;
} }

View File

@ -290,7 +290,7 @@ If a preferred [fullscreenOrientation](#fullscreenorientation) is set, causes th
### `headers` ### `headers`
<PlatformsList types={['Android']} /> <PlatformsList types={['iOS', 'Android']} />
Pass headers to the HTTP client. Can be used for authorization. Headers must be a Pass headers to the HTTP client. Can be used for authorization. Headers must be a
part of the source object. part of the source object.