Use prop types from deprecated-react-native-prop-types

Starting with React Native 0.68, using Prop Types from `react-native` emits a warning.
This commit is contained in:
Renaud Chaput 2022-03-30 22:36:21 +02:00
parent 63f12eaed6
commit 4bf4ee7392
No known key found for this signature in database
GPG Key ID: BCFC859D49B46990
2 changed files with 3 additions and 1 deletions

View File

@ -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';

View File

@ -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"