• 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

11.11
/app/src/components/DividerLayout.js
1
import React from 'react';
2
import { ScrollView, View } from 'react-native';
3
import { Text, SearchBar, Card } from '@rneui/themed';
4
import Stack from './Stack';
5
import Carousel from './Carousel';
6

7
const DividerLayout = ({
1✔
8
  children,
9
  search = {
×
10
    callback: null,
11
    value: null,
12
    placeholder: '',
13
  },
14
  list = {
×
15
    title: null,
16
    data: [],
17
  },
18
}) => {
19
  return (
×
20
    <Stack>
21
      <Stack>
22
        {search?.callback && (
×
23
          <SearchBar
24
            placeholder={search?.placeholder}
25
            onChangeText={search.callback}
26
            value={search.value}
27
          />
28
        )}
29
        {list?.title && <Text style={{ padding: 8, marginTop: 4 }}>{list.title}</Text>}
×
30
        <Carousel control>
31
          {list?.data?.map((d, dx) => {
32
            return <Carousel.Summary key={dx} {...d} />;
×
33
          })}
34
        </Carousel>
35
      </Stack>
36
      <Stack background="#d1d5db">{children}</Stack>
37
    </Stack>
38
  );
39
};
40

41
export default DividerLayout;
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