forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-sound+0.11.2.patch
38 lines (35 loc) · 1.18 KB
/
react-native-sound+0.11.2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff --git a/node_modules/react-native-sound/RNSound/RNSound.h b/node_modules/react-native-sound/RNSound/RNSound.h
index 7f5b97b..1a3c840 100644
--- a/node_modules/react-native-sound/RNSound/RNSound.h
+++ b/node_modules/react-native-sound/RNSound/RNSound.h
@@ -1,17 +1,7 @@
-#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
-#else
-#import "RCTBridgeModule.h"
-#endif
-
#import <AVFoundation/AVFoundation.h>
-
-#if __has_include(<React/RCTEventEmitter.h>)
#import <React/RCTEventEmitter.h>
-#else
-#import "RCTEventEmitter.h"
-#endif
@interface RNSound : RCTEventEmitter <RCTBridgeModule, AVAudioPlayerDelegate>
-@property (nonatomic, weak) NSNumber *_key;
+@property(nonatomic, weak) NSNumber *_key;
@end
diff --git a/node_modules/react-native-sound/RNSound/RNSound.m b/node_modules/react-native-sound/RNSound/RNSound.m
index df3784e..d34ac01 100644
--- a/node_modules/react-native-sound/RNSound/RNSound.m
+++ b/node_modules/react-native-sound/RNSound/RNSound.m
@@ -1,10 +1,6 @@
#import "RNSound.h"
-#if __has_include("RCTUtils.h")
-#import "RCTUtils.h"
-#else
#import <React/RCTUtils.h>
-#endif
@implementation RNSound {
NSMutableDictionary *_playerPool;