File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ + (NSString * _Nonnull)handlerUniqueId {
14
14
15
15
- (void )checkWithResolver : (void (^ _Nonnull)(RNPermissionStatus))resolve
16
16
rejecter : (void (__unused ^ _Nonnull)(NSError * _Nonnull))reject {
17
- #if TARGET_OS_SIMULATOR
17
+ #if TARGET_OS_SIMULATOR || TARGET_OS_TV
18
18
resolve (RNPermissionStatusNotAvailable);
19
19
#else
20
20
switch ([MPMediaLibrary authorizationStatus ]) {
@@ -32,7 +32,7 @@ - (void)checkWithResolver:(void (^ _Nonnull)(RNPermissionStatus))resolve
32
32
33
33
- (void )requestWithResolver : (void (^ _Nonnull)(RNPermissionStatus))resolve
34
34
rejecter : (void (^ _Nonnull)(NSError * _Nonnull))reject {
35
- #if TARGET_OS_SIMULATOR
35
+ #if TARGET_OS_SIMULATOR || TARGET_OS_TV
36
36
resolve (RNPermissionStatusNotAvailable);
37
37
#else
38
38
[MPMediaLibrary requestAuthorization: ^(__unused MPMediaLibraryAuthorizationStatus status) {
You can’t perform that action at this time.
0 commit comments