Support react-native > 0.40 (#437)

* Support react-native > 0.40

* Bumping major version. Breaking change.

* Upgrade example project from 0.33 => 0.40.
This commit is contained in:
Olof Dahlbom
2017-01-11 13:43:43 +01:00
committed by Matt Apperson
parent 9bcf70cbb5
commit fe6bc4f3df
24 changed files with 493 additions and 222 deletions

View File

@@ -1,4 +1,4 @@
#import "RCTView.h"
#import <React/RCTView.h>
#import <AVFoundation/AVFoundation.h>
#import "AVKit/AVKit.h"
#import "UIView+FindUIViewController.h"

View File

@@ -1,8 +1,8 @@
#import "RCTConvert.h"
#import <React/RCTConvert.h>
#import "RCTVideo.h"
#import "RCTBridgeModule.h"
#import "RCTEventDispatcher.h"
#import "UIView+React.h"
#import <React/RCTBridgeModule.h>
#import <React/RCTEventDispatcher.h>
#import <React/UIView+React.h>
static NSString *const statusKeyPath = @"status";
static NSString *const playbackLikelyToKeepUpKeyPath = @"playbackLikelyToKeepUp";

View File

@@ -220,8 +220,6 @@
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../react-native/React/**",
"$(SRCROOT)/../node_modules/react-native/React/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
@@ -236,8 +234,6 @@
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../react-native/React/**",
"$(SRCROOT)/../node_modules/react-native/React/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";

View File

@@ -1,4 +1,4 @@
#import "RCTViewManager.h"
#import <React/RCTViewManager.h>
@interface RCTVideoManager : RCTViewManager

View File

@@ -1,6 +1,6 @@
#import "RCTVideoManager.h"
#import "RCTVideo.h"
#import "RCTBridge.h"
#import <React/RCTBridge.h>
#import <AVFoundation/AVFoundation.h>
@implementation RCTVideoManager