propTypes migration pactches

This commit is contained in:
Nouman Tahir 2022-10-24 16:49:43 +05:00
parent f56776f4e3
commit 0005be5dd8
4 changed files with 4006 additions and 0 deletions

View File

@ -0,0 +1,21 @@
diff --git a/node_modules/@esteemapp/react-native-slider/src/Slider.js b/node_modules/@esteemapp/react-native-slider/src/Slider.js
index 62a724f..7733ac9 100644
--- a/node_modules/@esteemapp/react-native-slider/src/Slider.js
+++ b/node_modules/@esteemapp/react-native-slider/src/Slider.js
@@ -12,6 +12,7 @@ import {
} from 'react-native';
import PropTypes from 'prop-types';
+import { ImagePropTypes } from 'deprecated-react-native-prop-types';
const TRACK_SIZE = 4;
const THUMB_SIZE = 20;
@@ -146,7 +147,7 @@ export default class Slider extends PureComponent {
/**
* Sets an image for the thumb.
*/
- thumbImage: Image.propTypes.source,
+ thumbImage: ImagePropTypes.source,
/**
* Set this to true to visually see the thumb touch rect in green.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,22 @@
diff --git a/node_modules/react-native-highlight-words/index.js b/node_modules/react-native-highlight-words/index.js
index e15cc90..15f0b34 100644
--- a/node_modules/react-native-highlight-words/index.js
+++ b/node_modules/react-native-highlight-words/index.js
@@ -2,14 +2,15 @@ import React from 'react';
import {Text} from 'react-native';
import {findAll} from 'highlight-words-core';
import PropTypes from 'prop-types';
+import { TextPropTypes } from 'deprecated-react-native-prop-types';
Highlighter.propTypes = {
autoEscape: PropTypes.bool,
- highlightStyle: Text.propTypes.style,
+ highlightStyle: TextPropTypes.style,
searchWords: PropTypes.arrayOf(PropTypes.string).isRequired,
textToHighlight: PropTypes.string.isRequired,
sanitize: PropTypes.func,
- style: Text.propTypes.style
+ style: TextPropTypes.style
};
/**

View File

@ -0,0 +1,42 @@
diff --git a/node_modules/react-native-scrollable-tab-view/DefaultTabBar.js b/node_modules/react-native-scrollable-tab-view/DefaultTabBar.js
index da58b52..c16e40b 100644
--- a/node_modules/react-native-scrollable-tab-view/DefaultTabBar.js
+++ b/node_modules/react-native-scrollable-tab-view/DefaultTabBar.js
@@ -1,6 +1,7 @@
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const PropTypes = require('prop-types');
+const { TextPropTypes } = require('deprecated-react-native-prop-types');
const createReactClass = require('create-react-class');
const {
StyleSheet,
@@ -18,7 +19,7 @@ const DefaultTabBar = createReactClass({
backgroundColor: PropTypes.string,
activeTextColor: PropTypes.string,
inactiveTextColor: PropTypes.string,
- textStyle: Text.propTypes.style,
+ textStyle: TextPropTypes.style,
tabStyle: ViewPropTypes.style,
renderTab: PropTypes.func,
underlineStyle: ViewPropTypes.style,
diff --git a/node_modules/react-native-scrollable-tab-view/ScrollableTabBar.js b/node_modules/react-native-scrollable-tab-view/ScrollableTabBar.js
index 1500b2d..0be6fea 100644
--- a/node_modules/react-native-scrollable-tab-view/ScrollableTabBar.js
+++ b/node_modules/react-native-scrollable-tab-view/ScrollableTabBar.js
@@ -1,6 +1,7 @@
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const PropTypes = require('prop-types');
+const { TextPropTypes } = require('deprecated-react-native-prop-types');
const createReactClass = require('create-react-class');
const {
View,
@@ -27,7 +28,7 @@ const ScrollableTabBar = createReactClass({
style: ViewPropTypes.style,
tabStyle: ViewPropTypes.style,
tabsContainerStyle: ViewPropTypes.style,
- textStyle: Text.propTypes.style,
+ textStyle: TextPropTypes.style,
renderTab: PropTypes.func,
underlineStyle: ViewPropTypes.style,
onScroll: PropTypes.func,