File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 77 */
88
99import React , { Component } from 'react' ;
10+ import PropTypes from 'prop-types' ;
1011import {
1112 StyleSheet ,
1213 View ,
1314 Animated ,
1415 Dimensions ,
1516 Text ,
17+ ViewPropTypes as RNViewPropTypes ,
1618} from 'react-native'
19+
20+ const ViewPropTypes = RNViewPropTypes || View . propTypes ;
1721import { PropTypes } from 'prop-types' ;
1822export const DURATION = {
1923 LENGTH_LONG : 2000 ,
@@ -129,8 +133,8 @@ const styles = StyleSheet.create({
129133} ) ;
130134
131135Toast . propTypes = {
132- style : View . propTypes . style ,
133- position :PropTypes . oneOf ( [
136+ style : ViewPropTypes . style ,
137+ position : PropTypes . oneOf ( [
134138 'top' ,
135139 'center' ,
136140 'bottom' ,
Original file line number Diff line number Diff line change 3131 "react-native" : " >=0.20.0" ,
3232 "prop-types" : " ^15.5.7"
3333 },
34- "homepage" : " https://github.com/crazycodeboy/react-native-easy-toast#readme"
34+ "homepage" : " https://github.com/crazycodeboy/react-native-easy-toast#readme" ,
35+ "dependencies" : {
36+ "prop-types" : " ^15.5.10"
37+ }
3538}
You can’t perform that action at this time.
0 commit comments