Skip to content

Commit 5aa0a5c

Browse files
committed
Updates for RN 57
1 parent eae1654 commit 5aa0a5c

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

components/Transcode.js

-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ const TranscodeProgress = NativeModules.TranscodeProgress;
55

66
export default class Transcode extends React.Component {
77

8-
static propTypes = {
9-
style: React.PropTypes.any,
10-
};
11-
128
static async transcode(inFilePath, outFilePath, width, height) {
139
return TranscodeModule.transcode(inFilePath, outFilePath, width, height);
1410
}

ios/Transcode/Transcode.h

+15
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,23 @@
22
#import <AVFoundation/AVFoundation.h>
33
#import <AssetsLibrary/ALAssetsLibrary.h>
44
#import <MediaPlayer/MediaPlayer.h>
5+
6+
#if __has_include(<React/RCTBridgeModule.h>)
7+
#import <React/RCTBridgeModule.h>
8+
#elif __has_include("React/RCTBridgeModule.h")
9+
#import "React/RCTBridgeModule.h"
10+
#else
511
#import "RCTBridgeModule.h"
12+
#endif
13+
14+
#if __has_include(<React/RCTEventEmitter.h>)
15+
#import <React/RCTEventEmitter.h>
16+
#elif __has_include("React/RCTEventEmitter.h")
17+
#import "React/RCTEventEmitter.h"
18+
#else
619
#import "RCTEventEmitter.h"
20+
#endif
21+
722
enum CDVOutputFileType {
823
M4V = 0,
924
MPEG4 = 1,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-transcode",
33
"description": "Transcoder",
44
"author": "Sam Elsamman <sams@elsamman.com>",
5-
"version": "0.0.51",
5+
"version": "0.0.52",
66
"main": "components/Transcode.js",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)