76 lines
4.3 KiB
Diff
76 lines
4.3 KiB
Diff
diff --git a/node_modules/react-native-snap-carousel/src/carousel/Carousel.js b/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
|
|
index dae71a3..00f7960 100644
|
|
--- a/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
|
|
+++ b/node_modules/react-native-snap-carousel/src/carousel/Carousel.js
|
|
@@ -1,7 +1,8 @@
|
|
import React, { Component } from 'react';
|
|
-import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View, ViewPropTypes } from 'react-native';
|
|
+import { Animated, Easing, FlatList, I18nManager, Platform, ScrollView, View, } from 'react-native';
|
|
import PropTypes from 'prop-types';
|
|
import shallowCompare from 'react-addons-shallow-compare';
|
|
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
import {
|
|
defaultScrollInterpolator,
|
|
stackScrollInterpolator,
|
|
@@ -43,8 +44,8 @@ export default class Carousel extends Component {
|
|
autoplayDelay: PropTypes.number,
|
|
autoplayInterval: PropTypes.number,
|
|
callbackOffsetMargin: PropTypes.number,
|
|
- containerCustomStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
|
|
- contentContainerCustomStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
|
|
+ containerCustomStyle: ViewPropTypes.style,
|
|
+ contentContainerCustomStyle: ViewPropTypes.style,
|
|
enableMomentum: PropTypes.bool,
|
|
enableSnap: PropTypes.bool,
|
|
firstItem: PropTypes.number,
|
|
@@ -61,7 +62,7 @@ export default class Carousel extends Component {
|
|
scrollEnabled: PropTypes.bool,
|
|
scrollInterpolator: PropTypes.func,
|
|
slideInterpolatedStyle: PropTypes.func,
|
|
- slideStyle: ViewPropTypes ? ViewPropTypes.style : View.propTypes.style,
|
|
+ slideStyle: ViewPropTypes.style,
|
|
shouldOptimizeUpdates: PropTypes.bool,
|
|
swipeThreshold: PropTypes.number,
|
|
useScrollView: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
|
|
diff --git a/node_modules/react-native-snap-carousel/src/pagination/Pagination.js b/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
|
|
index 5c021cf..b4beca2 100644
|
|
--- a/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
|
|
+++ b/node_modules/react-native-snap-carousel/src/pagination/Pagination.js
|
|
@@ -1,6 +1,7 @@
|
|
import React, { PureComponent } from 'react';
|
|
-import { I18nManager, Platform, View, ViewPropTypes } from 'react-native';
|
|
+import { I18nManager, Platform, View } from 'react-native';
|
|
import PropTypes from 'prop-types';
|
|
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
import PaginationDot from './PaginationDot';
|
|
import styles from './Pagination.style';
|
|
|
|
diff --git a/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js b/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
|
|
index e59d196..acaf956 100644
|
|
--- a/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
|
|
+++ b/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
|
|
@@ -1,6 +1,7 @@
|
|
import React, { PureComponent } from 'react';
|
|
-import { View, Animated, Easing, TouchableOpacity, ViewPropTypes } from 'react-native';
|
|
+import { View, Animated, Easing, TouchableOpacity} from 'react-native';
|
|
import PropTypes from 'prop-types';
|
|
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
import styles from './Pagination.style';
|
|
|
|
export default class PaginationDot extends PureComponent {
|
|
diff --git a/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js b/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
|
|
index 8bc774a..de0ed79 100644
|
|
--- a/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
|
|
+++ b/node_modules/react-native-snap-carousel/src/parallaximage/ParallaxImage.js
|
|
@@ -1,8 +1,9 @@
|
|
// Parallax effect inspired by https://github.com/oblador/react-native-parallax/
|
|
|
|
import React, { Component } from 'react';
|
|
-import { View, ViewPropTypes, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';
|
|
+import { View, Image, Animated, Easing, ActivityIndicator, findNodeHandle } from 'react-native';
|
|
import PropTypes from 'prop-types';
|
|
+import { ViewPropTypes } from 'deprecated-react-native-prop-types';
|
|
import styles from './ParallaxImage.style';
|
|
|
|
export default class ParallaxImage extends Component {
|