• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

akvo / nmis-mobile / 5313109479

19 Jun 2023 02:28PM UTC coverage: 17.978% (-40.8%) from 58.824%
5313109479

Pull #11

github

web-flow
Merge a99a39dd9 into 9b0e54f3d
Pull Request #11: Feature/10 base layouts

0 of 28 branches covered (0.0%)

Branch coverage included in aggregate %.

50 of 50 new or added lines in 10 files covered. (100.0%)

16 of 61 relevant lines covered (26.23%)

71.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/app/src/components/Carousel/Control.js
1
import React from 'react';
2
import Icon from 'react-native-vector-icons/Ionicons';
3
import { View } from 'react-native';
4
import { Button } from '@rneui/themed';
5

6
export const Control = ({ prev, next, index = 0, isEndReached = false }) => {
1!
7
  const enabledColor = '#171717';
×
8
  const disabledColor = '#9ca3af';
×
9
  const isTheStart = index === 0;
×
10
  const prevColor = isTheStart ? disabledColor : enabledColor;
×
11
  const nextColor = isEndReached ? disabledColor : enabledColor;
×
12
  return (
×
13
    <View style={{ display: 'flex', flexDirection: 'row', width: '50%' }}>
14
      <Button type="clear" onPress={prev} disabled={isTheStart}>
15
        <Icon name="arrow-back" size={24} color={prevColor} />
16
      </Button>
17
      <Button type="clear" onPress={next} disabled={isEndReached}>
18
        <Icon name="arrow-forward" size={24} color={nextColor} />
19
      </Button>
20
    </View>
21
  );
22
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc