From acadabf17973f121bec79b56183c5d4c4662cc14 Mon Sep 17 00:00:00 2001 From: James Gibbons Date: Fri, 22 Apr 2016 00:01:44 -0400 Subject: [PATCH] fix for RN 0.24+ --- Examples/VideoPlayer/index.android.js | 7 +++++-- Examples/VideoPlayer/index.ios.js | 6 ++++-- Video.js | 10 +++++++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Examples/VideoPlayer/index.android.js b/Examples/VideoPlayer/index.android.js index 21ee336a..c5a000a5 100644 --- a/Examples/VideoPlayer/index.android.js +++ b/Examples/VideoPlayer/index.android.js @@ -1,8 +1,11 @@ 'use strict'; -import React, { +import { + Component +} from 'react'; + +import { AppRegistry, - Component, StyleSheet, Text, TouchableOpacity, diff --git a/Examples/VideoPlayer/index.ios.js b/Examples/VideoPlayer/index.ios.js index e6e5f838..6fed5dd7 100644 --- a/Examples/VideoPlayer/index.ios.js +++ b/Examples/VideoPlayer/index.ios.js @@ -1,9 +1,11 @@ 'use strict'; - import React, { + Component +} from 'react'; + +import { AlertIOS, AppRegistry, - Component, StyleSheet, Text, TouchableOpacity, diff --git a/Video.js b/Video.js index 60859b17..38d7b23e 100644 --- a/Video.js +++ b/Video.js @@ -1,14 +1,18 @@ -import React from 'react-native'; +import React from 'react'; +import ReactNative from 'react-native'; import VideoResizeMode from './VideoResizeMode.js'; const { Component, + PropTypes, +} = React; + +const { StyleSheet, requireNativeComponent, - PropTypes, NativeModules, View, -} = React; +} = ReactNative; const styles = StyleSheet.create({ base: {