@@ -13,28 +13,28 @@ export function pagination(view, list) {
13
13
< View style = { { flexDirection : 'row' , alignSelf : 'center' , alignContent : 'center' } } >
14
14
< SocialIcon
15
15
type = 'fast-backward'
16
- iconColor = { view [ 'hydra: previous' ] ? '#3faab4' : 'grey' }
17
- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: first' ] ) ) }
18
- disabled = { ! view [ 'hydra: previous' ] }
16
+ iconColor = { view [ '{{hydraPrefix}} previous' ] ? '#3faab4' : 'grey' }
17
+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} first' ] ) ) }
18
+ disabled = { ! view [ '{{hydraPrefix}} previous' ] }
19
19
/>
20
20
< SocialIcon
21
21
type = 'backward'
22
- iconColor = { view [ 'hydra: previous' ] ? '#3faab4' : 'grey' }
23
- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: previous' ] ) ) }
24
- disabled = { ! view [ 'hydra: previous' ] }
22
+ iconColor = { view [ '{{hydraPrefix}} previous' ] ? '#3faab4' : 'grey' }
23
+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} previous' ] ) ) }
24
+ disabled = { ! view [ '{{hydraPrefix}} previous' ] }
25
25
/>
26
26
< SocialIcon
27
27
type = 'forward'
28
- iconColor = { view [ 'hydra: next' ] ? '#3faab4' : 'grey' }
29
- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: next' ] ) ) }
30
- disabled = { ! view [ 'hydra: next' ] }
28
+ iconColor = { view [ '{{hydraPrefix}} next' ] ? '#3faab4' : 'grey' }
29
+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} next' ] ) ) }
30
+ disabled = { ! view [ '{{hydraPrefix}} next' ] }
31
31
/>
32
32
33
33
< SocialIcon
34
34
type = 'fast-forward'
35
- iconColor = { view [ 'hydra: next' ] ? '#3faab4' : 'grey' }
36
- disabled = { ! view [ 'hydra: next' ] }
37
- onPress = { ( ) => list ( paginationRoute ( view [ 'hydra: last' ] ) ) }
35
+ iconColor = { view [ '{{hydraPrefix}} next' ] ? '#3faab4' : 'grey' }
36
+ disabled = { ! view [ '{{hydraPrefix}} next' ] }
37
+ onPress = { ( ) => list ( paginationRoute ( view [ '{{hydraPrefix}} last' ] ) ) }
38
38
activityIndicatorStyle = { { backgroundColor :'red' } }
39
39
/>
40
40
</ View >
@@ -45,4 +45,4 @@ export function delayRefresh() {
45
45
setTimeout ( ( ) => {
46
46
Actions . refresh ( { refresh : Math . random ( ) } ) ;
47
47
} , 500 ) ;
48
- }
48
+ }
0 commit comments