fix for RN 0.24+

This commit is contained in:
James Gibbons 2016-04-22 00:01:44 -04:00
parent b17e3add97
commit acadabf179
3 changed files with 16 additions and 7 deletions

View File

@ -1,8 +1,11 @@
'use strict'; 'use strict';
import React, { import {
Component
} from 'react';
import {
AppRegistry, AppRegistry,
Component,
StyleSheet, StyleSheet,
Text, Text,
TouchableOpacity, TouchableOpacity,

View File

@ -1,9 +1,11 @@
'use strict'; 'use strict';
import React, { import React, {
Component
} from 'react';
import {
AlertIOS, AlertIOS,
AppRegistry, AppRegistry,
Component,
StyleSheet, StyleSheet,
Text, Text,
TouchableOpacity, TouchableOpacity,

View File

@ -1,14 +1,18 @@
import React from 'react-native'; import React from 'react';
import ReactNative from 'react-native';
import VideoResizeMode from './VideoResizeMode.js'; import VideoResizeMode from './VideoResizeMode.js';
const { const {
Component, Component,
PropTypes,
} = React;
const {
StyleSheet, StyleSheet,
requireNativeComponent, requireNativeComponent,
PropTypes,
NativeModules, NativeModules,
View, View,
} = React; } = ReactNative;
const styles = StyleSheet.create({ const styles = StyleSheet.create({
base: { base: {