From 4bf4ee7392454edcc5d302c91ed7e42bb031cbf0 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 30 Mar 2022 22:36:21 +0200 Subject: [PATCH 1/2] Use prop types from `deprecated-react-native-prop-types` Starting with React Native 0.68, using Prop Types from `react-native` emits a warning. --- Video.js | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Video.js b/Video.js index b492d48b..959d0fe7 100644 --- a/Video.js +++ b/Video.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; -import { StyleSheet, requireNativeComponent, NativeModules, View, ViewPropTypes, Image, Platform, findNodeHandle } from 'react-native'; +import { StyleSheet, requireNativeComponent, NativeModules, View, Image, Platform, findNodeHandle } from 'react-native'; +import { ViewPropTypes } from "deprecated-react-native-prop-types"; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import TextTrackType from './TextTrackType'; import FilterType from './FilterType'; diff --git a/package.json b/package.json index cb8d146e..9dabd081 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "react-native-windows": "^0.61.0-0" }, "dependencies": { + "deprecated-react-native-prop-types": "^2.2.0", "keymirror": "^0.1.1", "prop-types": "^15.7.2", "shaka-player": "^2.5.9" From 9ce8e26bd4d051d5e0861af019f2d7da17056231 Mon Sep 17 00:00:00 2001 From: Eran Hammer Date: Sat, 4 Jun 2022 01:15:25 -0700 Subject: [PATCH 2/2] Update Video.js Co-authored-by: Elliott Kember --- Video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Video.js b/Video.js index 2d3c397f..5c07d8de 100644 --- a/Video.js +++ b/Video.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, requireNativeComponent, NativeModules, UIManager, View, Image, Platform, findNodeHandle } from 'react-native'; -import { ViewPropTypes } from "deprecated-react-native-prop-types"; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import TextTrackType from './TextTrackType'; import FilterType from './FilterType';