diff --git a/.history/package_20221003212803.json b/.history/package_20221003212803.json new file mode 100644 index 000000000..7304e37ce --- /dev/null +++ b/.history/package_20221003212803.json @@ -0,0 +1,63 @@ +{ + "name": "react-native-snap-carousel", + "version": "3.9.1", + "description": "Swiper/carousel component for React Native with previews, multiple layouts, parallax images, performant handling of huge numbers of items, and RTL support. Compatible with Android & iOS.", + "main": "src/index.js", + "repository": { + "type": "git", + "url": "github.com/meliorence/react-native-snap-carousel" + }, + "keywords": [ + "react", + "native", + "carousel", + "slider", + "swiper", + "flatlist", + "scrollview", + "parallax", + "images", + "infinite", + "scroll", + "scrolling", + "items", + "edge", + "snap", + "card", + "cards", + "stack", + "deck", + "tinder", + "android", + "ios", + "snapping", + "component", + "rtl" + ], + "author": "Meliorence (github.com/meliorence)", + "license": "BSD-3-Clause", + "dependencies": { + "prop-types": "^15.6.1", + "react-addons-shallow-compare": "15.6.2" + }, + "peerDependencies": { + "react": ">=15.0.0", + "react-native": "*" + }, + "devDependencies": { + "babel-eslint": "^8.2.2", + "eslint": "^4.19.1", + "eslint-config-standard": "^10.2.1", + "eslint-config-standard-react": "^5.0.0", + "eslint-plugin-import": "^2.11.0", + "eslint-plugin-node": "^5.2.1", + "eslint-plugin-promise": "^3.7.0", + "eslint-plugin-react": "^7.7.0", + "eslint-plugin-standard": "^3.0.1" + }, + "homepage": "https://github.com/meliorence/react-native-snap-carousel", + "bugs": { + "url": "https://github.com/meliorence/react-native-snap-carousel/issues" + }, + "readmeFilename": "README.md" +} diff --git a/.history/package_20221003213733.json b/.history/package_20221003213733.json new file mode 100644 index 000000000..45fe39e37 --- /dev/null +++ b/.history/package_20221003213733.json @@ -0,0 +1,65 @@ +{ + "name": "react-native-snap-carousel", + "version": "3.9.1", + "description": "Swiper/carousel component for React Native with previews, multiple layouts, parallax images, performant handling of huge numbers of items, and RTL support. Compatible with Android & iOS.", + "main": "src/index.js", + "repository": { + "type": "git", + "url": "github.com/meliorence/react-native-snap-carousel" + }, + "keywords": [ + "react", + "native", + "carousel", + "slider", + "swiper", + "flatlist", + "scrollview", + "parallax", + "images", + "infinite", + "scroll", + "scrolling", + "items", + "edge", + "snap", + "card", + "cards", + "stack", + "deck", + "tinder", + "android", + "ios", + "snapping", + "component", + "rtl" + ], + "author": "Meliorence (github.com/meliorence)", + "license": "BSD-3-Clause", + "dependencies": { + "prop-types": "^15.6.1", + "react-addons-shallow-compare": "15.6.2", + "deprecated-react-native-prop-types": "2.2.0" + }, + "peerDependencies": { + "react": ">=15.0.0", + "react-native": "*", + "deprecated-react-native-prop-types": ">=2.0.0" + }, + "devDependencies": { + "babel-eslint": "^8.2.2", + "eslint": "^4.19.1", + "eslint-config-standard": "^10.2.1", + "eslint-config-standard-react": "^5.0.0", + "eslint-plugin-import": "^2.11.0", + "eslint-plugin-node": "^5.2.1", + "eslint-plugin-promise": "^3.7.0", + "eslint-plugin-react": "^7.7.0", + "eslint-plugin-standard": "^3.0.1" + }, + "homepage": "https://github.com/meliorence/react-native-snap-carousel", + "bugs": { + "url": "https://github.com/meliorence/react-native-snap-carousel/issues" + }, + "readmeFilename": "README.md" +} diff --git a/package.json b/package.json index 7304e37ce..45fe39e37 100644 --- a/package.json +++ b/package.json @@ -38,11 +38,13 @@ "license": "BSD-3-Clause", "dependencies": { "prop-types": "^15.6.1", - "react-addons-shallow-compare": "15.6.2" + "react-addons-shallow-compare": "15.6.2", + "deprecated-react-native-prop-types": "2.2.0" }, "peerDependencies": { "react": ">=15.0.0", - "react-native": "*" + "react-native": "*", + "deprecated-react-native-prop-types": ">=2.0.0" }, "devDependencies": { "babel-eslint": "^8.2.2", diff --git a/src/carousel/Carousel.js b/src/carousel/Carousel.js index dae71a3da..4dd36a254 100644 --- a/src/carousel/Carousel.js +++ b/src/carousel/Carousel.js @@ -1,5 +1,6 @@ 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 { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import { diff --git a/src/pagination/Pagination.js b/src/pagination/Pagination.js index 5c021cf36..d300dce8e 100644 --- a/src/pagination/Pagination.js +++ b/src/pagination/Pagination.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react'; -import { I18nManager, Platform, View, ViewPropTypes } from 'react-native'; +import { I18nManager, Platform, View } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import PaginationDot from './PaginationDot'; import styles from './Pagination.style'; diff --git a/src/pagination/PaginationDot.js b/src/pagination/PaginationDot.js index e59d1969f..d2c8dccc3 100644 --- a/src/pagination/PaginationDot.js +++ b/src/pagination/PaginationDot.js @@ -1,5 +1,6 @@ import React, { PureComponent } from 'react'; -import { View, Animated, Easing, TouchableOpacity, ViewPropTypes } from 'react-native'; +import { View, Animated, Easing, TouchableOpacity } from 'react-native'; +import { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import styles from './Pagination.style'; diff --git a/src/parallaximage/ParallaxImage.js b/src/parallaximage/ParallaxImage.js index 8bc774a10..d6d9de3ba 100644 --- a/src/parallaximage/ParallaxImage.js +++ b/src/parallaximage/ParallaxImage.js @@ -1,7 +1,8 @@ // 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 { ViewPropTypes } from 'deprecated-react-native-prop-types'; import PropTypes from 'prop-types'; import styles from './ParallaxImage.style';