This commit is contained in:
Matt Apperson 2017-08-16 15:20:47 -04:00
commit 4bf2b2c45f
4 changed files with 6 additions and 9 deletions

View File

@ -1,4 +1,5 @@
import React, {Component, PropTypes} from 'react'; import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, requireNativeComponent, NativeModules, View, Image} from 'react-native'; import {StyleSheet, requireNativeComponent, NativeModules, View, Image} from 'react-native';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import VideoResizeMode from './VideoResizeMode.js'; import VideoResizeMode from './VideoResizeMode.js';

View File

@ -17,7 +17,7 @@ public class ReactVideoPackage implements ReactPackage {
return Collections.emptyList(); return Collections.emptyList();
} }
@Override // Deprecated RN 0.47
public List<Class<? extends JavaScriptModule>> createJSModules() { public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList(); return Collections.emptyList();
} }

View File

@ -18,7 +18,7 @@ public class ReactVideoPackage implements ReactPackage {
return Collections.emptyList(); return Collections.emptyList();
} }
@Override // Deprecated RN 0.47
public List<Class<? extends JavaScriptModule>> createJSModules() { public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList(); return Collections.emptyList();
} }

View File

@ -1,15 +1,11 @@
{ {
"name": "react-native-video", "name": "react-native-video",
"version": "1.2.0", "version": "2.0.0",
"description": "A <Video /> element for react-native", "description": "A <Video /> element for react-native",
"main": "Video.js", "main": "Video.js",
"license": "MIT", "license": "MIT",
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)", "author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",
"contributors": [ "contributors": [
{
"name": "Matthew Apperson",
"email": "me@mattapperson.com"
},
{ {
"name": "Johannes Lumpe", "name": "Johannes Lumpe",
"email": "johannes@lum.pe" "email": "johannes@lum.pe"
@ -32,7 +28,7 @@
}, },
"dependencies": { "dependencies": {
"keymirror": "0.1.1", "keymirror": "0.1.1",
"react-native-windows": "0.41.0-rc.0" "prop-types": "^15.5.10"
}, },
"scripts": { "scripts": {
"test": "node_modules/.bin/eslint *.js" "test": "node_modules/.bin/eslint *.js"