mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-26 14:54:19 +03:00
propTypes migration pactches
This commit is contained in:
parent
f56776f4e3
commit
0005be5dd8
21
patches/@esteemapp+react-native-slider+0.12.0.patch
Normal file
21
patches/@esteemapp+react-native-slider+0.12.0.patch
Normal 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.
|
3921
patches/react-native-fingerprint-scanner+6.0.0.patch
Normal file
3921
patches/react-native-fingerprint-scanner+6.0.0.patch
Normal file
File diff suppressed because it is too large
Load Diff
22
patches/react-native-highlight-words+1.0.1.patch
Normal file
22
patches/react-native-highlight-words+1.0.1.patch
Normal 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
|
||||
};
|
||||
|
||||
/**
|
42
patches/react-native-scrollable-tab-view+1.1.0.patch
Normal file
42
patches/react-native-scrollable-tab-view+1.1.0.patch
Normal 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,
|
Loading…
Reference in New Issue
Block a user