Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"author": "Meliorence <[email protected]> (github.com/meliorence)",
"license": "BSD-3-Clause",
"dependencies": {
"deprecated-react-native-prop-types": "^5.0.0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added deprecated-react-native-prop-types to the dependencies in package.json with version ^5.0.0.

"prop-types": "^15.6.1",
"react-addons-shallow-compare": "15.6.2"
},
Expand Down
3 changes: 2 additions & 1 deletion src/carousel/Carousel.js
Original file line number Diff line number Diff line change
@@ -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';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types.

import PropTypes from 'prop-types';
import shallowCompare from 'react-addons-shallow-compare';
import {
Expand Down
3 changes: 2 additions & 1 deletion src/pagination/Pagination.js
Original file line number Diff line number Diff line change
@@ -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';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types.

import PropTypes from 'prop-types';
import PaginationDot from './PaginationDot';
import styles from './Pagination.style';
Expand Down
4 changes: 3 additions & 1 deletion src/pagination/PaginationDot.js
Original file line number Diff line number Diff line change
@@ -1,5 +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 { ViewPropTypes } from 'deprecated-react-native-prop-types';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types


import PropTypes from 'prop-types';
import styles from './Pagination.style';

Expand Down
3 changes: 2 additions & 1 deletion src/parallaximage/ParallaxImage.js
Original file line number Diff line number Diff line change
@@ -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';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed ViewPropTypes import from react-native and added it from deprecated-react-native-prop-types

import PropTypes from 'prop-types';
import styles from './ParallaxImage.style';

Expand Down