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

calintamas / react-native-toast-message / 7167128441

11 Dec 2023 12:04PM UTC coverage: 100.0%. First build
7167128441

Pull #479

github

web-flow
Merge 79850c70a into ce571f77e
Pull Request #479: Improved accessibility of text style props for customized toast messages

83 of 83 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

209 of 209 relevant lines covered (100.0%)

22.12 hits per line

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

100.0
/src/components/BaseToast.styles.ts
1
import { StyleSheet } from 'react-native';
2

3
export const HEIGHT = 60;
6✔
4
export const WIDTH = 340;
6✔
5
export const BORDER_RADIUS = 6;
6✔
6

7
export const styles = StyleSheet.create({
6✔
8
  base: {
9
    flexDirection: 'row',
10
    height: HEIGHT,
11
    width: WIDTH,
12
    borderRadius: BORDER_RADIUS,
13
    shadowOffset: { width: 0, height: 0 },
14
    shadowOpacity: 0.1,
15
    shadowRadius: BORDER_RADIUS,
16
    elevation: 2,
17
    backgroundColor: '#FFF'
18
  },
19
  leadingBorder: {
20
    borderLeftWidth: 5,
21
    borderLeftColor: '#D8D8D8'
22
  },
23
  contentContainer: {
24
    paddingHorizontal: 25,
25
    flex: 1,
26
    justifyContent: 'center',
27
    alignItems: 'flex-start' // In case of RTL, the text will start from the right
28
  },
29
  text1: {
30
    fontSize: 12,
31
    fontWeight: 'bold',
32
    marginBottom: 2,
33
    color: '#000',
34
    width: '100%' // Fixes: https://github.com/calintamas/react-native-toast-message/issues/130
35
  },
36
  text2: {
37
    fontSize: 10,
38
    color: '#979797',
39
    width: '100%' // Fixes: https://github.com/calintamas/react-native-toast-message/issues/130
40
  }
41
});
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