Skip to content

Commit fc335ec

Browse files
committed
added 'deprecated-react-native-prop-types' package and changed import to use it
1 parent cf60409 commit fc335ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"peerDependencies": {
1616
"react": "*",
1717
"react-native": ">=0.46",
18-
"lottie-react-native": ">=3.0.0"
18+
"lottie-react-native": ">=3.0.0",
19+
"deprecated-react-native-prop-types": "^2.3.0"
1920
},
2021
"author": "Vikrant Negi",
2122
"license": "MIT",

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
2-
import { StyleSheet, View, Modal, ViewPropTypes } from 'react-native';
2+
import { StyleSheet, View, Modal } from 'react-native';
33
import PropTypes from 'prop-types';
44
import LottieAnimation from 'lottie-react-native';
5+
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
56

67
export default class AnimatedLoader extends React.PureComponent {
78
static defaultProps = {

0 commit comments

Comments
 (0)