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

gmsgowtham / react-native-marked / 4649177073

pending completion
4649177073

Pull #253

github

GitHub
Merge 0ebb5ffba into eb93887da
Pull Request #253: __WIP__

57 of 72 branches covered (79.17%)

Branch coverage included in aggregate %.

23 of 23 new or added lines in 3 files covered. (100.0%)

140 of 161 relevant lines covered (86.96%)

28.65 hits per line

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

15.38
/src/utils/table.ts
1
import type { TextStyle } from "react-native";
2
import type { TableColAlignment } from "../lib/types";
3

4
export const getTableWidthArr = (totalCols: number, windowWidth: number) => {
2✔
5
        return Array(totalCols)
×
6
                .fill(0)
7
                .map(() => {
8
                        return windowWidth * (1.3 / 3);
×
9
                });
10
};
11

12
export const getTableColAlignmentStyle = (
2✔
13
        alignment?: TableColAlignment,
14
): TextStyle => {
15
        switch (alignment) {
×
16
                case "center":
17
                        return { textAlign: "center" };
×
18
                case "left":
19
                        return { textAlign: "left" };
×
20
                case "right":
21
                        return { textAlign: "right" };
×
22
                default:
23
                        return { textAlign: "left" };
×
24
        }
25
};
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