1
1
import React from "react" ;
2
- import {
3
- View ,
4
- Text ,
5
- Image ,
6
- TouchableOpacity ,
7
- StyleSheet
8
- } from "react-native" ;
2
+ import { View , Text , Image , TouchableOpacity , StyleSheet } from "react-native" ;
3
+ import PropTypes from 'prop-types' ;
4
+
9
5
import styles from "./styles" ;
10
6
11
7
const arrowStyle = StyleSheet . create ( {
@@ -25,9 +21,9 @@ const Arrow = ({source, width, height}) => (
25
21
</ View >
26
22
) ;
27
23
Arrow . propTypes = {
28
- source : React . PropTypes . number . isRequired ,
29
- width : React . PropTypes . number . isRequired ,
30
- height : React . PropTypes . number . isRequired
24
+ source : PropTypes . number . isRequired ,
25
+ width : PropTypes . number . isRequired ,
26
+ height : PropTypes . number . isRequired
31
27
} ;
32
28
Arrow . defaultProps = {
33
29
width : 6 ,
@@ -116,13 +112,13 @@ TopBar.defaultProps = {
116
112
year : 2000
117
113
} ;
118
114
TopBar . propTypes = {
119
- onPrev : React . PropTypes . func . isRequired ,
120
- onNext : React . PropTypes . func . isRequired ,
121
- customStyle : React . PropTypes . object . isRequired ,
122
- scrollToToday : React . PropTypes . func . isRequired ,
123
- onTitlePress : React . PropTypes . func . isRequired ,
124
- localizedMonth :React . PropTypes . string . isRequired ,
125
- year : React . PropTypes . number . isRequired
115
+ onPrev : PropTypes . func . isRequired ,
116
+ onNext : PropTypes . func . isRequired ,
117
+ customStyle : PropTypes . object . isRequired ,
118
+ scrollToToday : PropTypes . func . isRequired ,
119
+ onTitlePress : PropTypes . func . isRequired ,
120
+ localizedMonth : PropTypes . string . isRequired ,
121
+ year : PropTypes . number . isRequired
126
122
} ;
127
123
128
124
module . exports = TopBar ;
0 commit comments