Always set headers for iOS (#2014)

This commit is contained in:
Jens Andersson
2020-06-11 16:53:14 +02:00
committed by GitHub
parent f395bd1d3d
commit 9c31948dbf
3 changed files with 5 additions and 9 deletions

View File

@@ -473,8 +473,6 @@ Platforms: iOS
#### headers
Pass headers to the HTTP client. Can be used for authorization. Headers must be a part of the source object.
To enable this on iOS, you will need to manually edit RCTVideo.m and uncomment the header code in the playerItemForSource function. This is because the code used a private API and may cause your app to be rejected by the App Store. Use at your own risk.
Example:
```
source={{