Fakultas Ilmu Komputer UI

index.test.tsx.snap 32.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders correctly 1`] = `
<View
  style={
    Object {
      "flex": 1,
    }
  }
>
  <RNCSafeAreaView
    onInsetsChange={[Function]}
    style={
      Object {
        "flex": 1,
      }
    }
  >
    <View
      onLayout={[Function]}
      style={
        Object {
          "flex": 1,
          "overflow": "hidden",
        }
      }
    >
      <View
        pointerEvents="box-none"
        style={
          Object {
            "bottom": 0,
            "left": 0,
            "position": "absolute",
            "right": 0,
            "top": 0,
          }
        }
      >
        <View
          accessibilityElementsHidden={false}
          closing={false}
          gestureVelocityImpact={0.3}
          importantForAccessibility="auto"
          onClose={[Function]}
          onGestureBegin={[Function]}
          onGestureCanceled={[Function]}
          onOpen={[Function]}
          onTransitionStart={[Function]}
          pointerEvents="box-none"
          style={
            Object {
              "bottom": 0,
              "left": 0,
              "position": "absolute",
              "right": 0,
              "top": 0,
            }
          }
          transitionSpec={
            Object {
              "close": Object {
                "animation": "spring",
                "config": Object {
                  "damping": 500,
                  "mass": 3,
                  "overshootClamping": true,
                  "restDisplacementThreshold": 0.01,
                  "restSpeedThreshold": 0.01,
                  "stiffness": 1000,
                },
              },
              "open": Object {
                "animation": "spring",
                "config": Object {
                  "damping": 500,
                  "mass": 3,
                  "overshootClamping": true,
                  "restDisplacementThreshold": 0.01,
                  "restSpeedThreshold": 0.01,
                  "stiffness": 1000,
                },
              },
            }
          }
        >
          <View
            pointerEvents="box-none"
            style={
              Object {
                "flex": 1,
                "marginTop": 64,
              }
            }
          >
            <View
              collapsable={false}
              forwardedRef={[Function]}
              onGestureHandlerEvent={[Function]}
              onGestureHandlerStateChange={[Function]}
              style={
                Object {
                  "flex": 1,
                  "transform": Array [
                    Object {
                      "translateX": 0,
                    },
                    Object {
                      "translateX": 0,
                    },
                  ],
                }
              }
            >
              <View
                pointerEvents="none"
                style={
                  Object {
                    "backgroundColor": "#fff",
                    "bottom": 0,
                    "left": 0,
                    "position": "absolute",
                    "shadowColor": "#000",
                    "shadowOffset": Object {
                      "height": 1,
                      "width": -1,
                    },
                    "shadowOpacity": 0.3,
                    "shadowRadius": 5,
                    "top": 0,
                    "width": 3,
                  }
                }
              />
              <View
                style={
                  Array [
                    Object {
                      "flex": 1,
                      "overflow": "hidden",
                    },
                    Array [
                      Object {
                        "backgroundColor": "rgb(242, 242, 242)",
                      },
                      undefined,
                    ],
                  ]
                }
              >
                <View
                  style={
                    Object {
                      "flex": 1,
                      "flexDirection": "column-reverse",
                    }
                  }
                >
                  <View
                    style={
                      Object {
                        "flex": 1,
                      }
                    }
                  >
                    <RCTScrollView
                      style={
                        Array [
                          Object {
                            "backgroundColor": "white",
                            "minHeight": "100%",
                          },
                        ]
                      }
                    >
                      <View>
                        <RCTSafeAreaView
                          emulateUnlessSupported={true}
                          style={
                            Array [
                              Object {
                                "display": "flex",
                              },
                            ]
                          }
                        >
                          <RCTSafeAreaView
                            emulateUnlessSupported={true}
                            style={
                              Array [
                                Object {
                                  "backgroundColor": "white",
                                },
                              ]
                            }
                          >
                            <RCTSafeAreaView
                              emulateUnlessSupported={true}
                              style={
                                Array [
                                  Object {
                                    "backgroundColor": "#f5f5f5",
                                    "borderBottomRightRadius": 70,
Nandhika Prayoga's avatar
Nandhika Prayoga committed
204
                                    "height": 150,
205
206
207
208
209
210
211
212
213
214
                                    "justifyContent": "center",
                                  },
                                ]
                              }
                            >
                              <RCTSafeAreaView
                                emulateUnlessSupported={true}
                                style={
                                  Array [
                                    Object {
Nandhika Prayoga's avatar
Nandhika Prayoga committed
215
216
217
218
219
220
221
222
223
                                      "display": "flex",
                                      "flexDirection": "column",
                                      "flexWrap": "nowrap",
                                      "height": "100%",
                                      "justifyContent": "space-between",
                                      "paddingBottom": 16,
                                      "paddingLeft": 24,
                                      "paddingRight": 24,
                                      "paddingTop": 16,
224
225
226
227
                                    },
                                  ]
                                }
                              >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
                                <View
                                  grow={1}
                                  style={
                                    Array [
                                      Object {
                                        "alignItems": "flex-start",
                                        "backgroundColor": "transparent",
                                        "borderBottomColor": "black",
                                        "borderBottomWidth": 0,
                                        "borderLeftColor": "black",
                                        "borderLeftWidth": 0,
                                        "borderRadius": 0,
                                        "borderRightColor": "black",
                                        "borderRightWidth": 0,
                                        "borderTopColor": "black",
                                        "borderTopWidth": 0,
                                        "flexDirection": "row",
                                        "flexGrow": 1,
                                        "flexShrink": 0,
                                        "flexWrap": "nowrap",
                                        "height": "auto",
                                        "justifyContent": "flex-start",
                                        "paddingBottom": 0,
                                        "paddingLeft": 0,
                                        "paddingRight": 0,
                                        "paddingTop": 0,
                                        "width": "auto",
                                      },
                                    ]
                                  }
                                />
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
                                <View
                                  style={
                                    Array [
                                      Object {
                                        "alignItems": "center",
                                        "display": "flex",
                                        "flexDirection": "row",
                                      },
                                    ]
                                  }
                                >
                                  <Image
                                    source="test-file-stub"
                                    style={
                                      Object {
                                        "borderRadius": 100,
Nandhika Prayoga's avatar
Nandhika Prayoga committed
275
276
                                        "height": 80,
                                        "width": 80,
277
278
279
280
281
282
283
                                      }
                                    }
                                  />
                                  <View
                                    style={
                                      Array [
                                        Object {
Nandhika Prayoga's avatar
Nandhika Prayoga committed
284
                                          "marginLeft": 12,
285
286
287
288
289
                                        },
                                      ]
                                    }
                                  >
                                    <Text
Nandhika Prayoga's avatar
Nandhika Prayoga committed
290
291
                                      fontSize="24px"
                                      fontWeight="Bold"
292
293
294
295
                                      style={
                                        Array [
                                          Object {
                                            "color": "black",
Nandhika Prayoga's avatar
Nandhika Prayoga committed
296
297
                                            "fontFamily": "Dosis-Bold",
                                            "fontSize": 24,
298
299
300
301
302
303
                                            "textAlign": "left",
                                            "width": "auto",
                                          },
                                        ]
                                      }
                                    >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
304
                                      Halo,  !
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
                                    </Text>
                                    <Text
                                      fontSize="16px"
                                      fontWeight="Regular"
                                      style={
                                        Array [
                                          Object {
                                            "color": "black",
                                            "fontFamily": "Dosis-Regular",
                                            "fontSize": 16,
                                            "textAlign": "left",
                                            "width": "auto",
                                          },
                                        ]
                                      }
                                    >
                                      Semangat berantas TB
                                    </Text>
jahnsmichael's avatar
jahnsmichael committed
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
                                    <View
                                      accessible={true}
                                      focusable={true}
                                      onClick={[Function]}
                                      onResponderGrant={[Function]}
                                      onResponderMove={[Function]}
                                      onResponderRelease={[Function]}
                                      onResponderTerminate={[Function]}
                                      onResponderTerminationRequest={[Function]}
                                      onStartShouldSetResponder={[Function]}
                                      style={
                                        Object {
                                          "borderWidth": 0,
                                          "height": "auto",
                                          "opacity": 1,
                                          "width": "auto",
                                        }
                                      }
                                    >
                                      <Text
                                        fontSize="16px"
                                        fontWeight="Regular"
                                        style={
                                          Array [
                                            Object {
                                              "color": "black",
                                              "fontFamily": "Dosis-Regular",
                                              "fontSize": 16,
                                              "textAlign": "left",
                                              "width": "auto",
                                            },
                                          ]
                                        }
                                      >
                                        Lihat Profile
                                      </Text>
                                    </View>
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
                                  </View>
                                </View>
                              </RCTSafeAreaView>
                            </RCTSafeAreaView>
                          </RCTSafeAreaView>
                          <RCTSafeAreaView
                            emulateUnlessSupported={true}
                            style={
                              Array [
                                Object {
                                  "backgroundColor": "#f5f5f5",
                                },
                              ]
                            }
                          >
                            <RCTSafeAreaView
                              emulateUnlessSupported={true}
                              style={
                                Array [
                                  Object {
                                    "backgroundColor": "white",
                                    "borderTopLeftRadius": 80,
                                    "justifyContent": "center",
                                    "minHeight": 30,
                                  },
                                ]
                              }
                            />
                          </RCTSafeAreaView>
                        </RCTSafeAreaView>
                        <View
                          style={
                            Array [
                              Object {
Nandhika Prayoga's avatar
Nandhika Prayoga committed
394
395
396
397
                                "paddingBottom": 0,
                                "paddingLeft": 24,
                                "paddingRight": 24,
                                "paddingTop": 0,
398
399
400
401
                              },
                            ]
                          }
                        >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
                          <View
                            style={
                              Array [
                                Object {
                                  "alignItems": "flex-start",
                                  "backgroundColor": "transparent",
                                  "borderBottomColor": "black",
                                  "borderBottomWidth": 0,
                                  "borderLeftColor": "black",
                                  "borderLeftWidth": 0,
                                  "borderRadius": 0,
                                  "borderRightColor": "black",
                                  "borderRightWidth": 0,
                                  "borderTopColor": "black",
                                  "borderTopWidth": 0,
                                  "flexDirection": "row",
                                  "flexGrow": 0,
                                  "flexShrink": 0,
                                  "flexWrap": "nowrap",
                                  "height": "auto",
                                  "justifyContent": "flex-start",
                                  "paddingBottom": 0,
                                  "paddingLeft": 0,
                                  "paddingRight": 0,
                                  "paddingTop": 0,
                                  "width": 150,
                                },
                              ]
                            }
                            width="150px"
                          >
                            <View
                              accessible={true}
                              focusable={true}
                              onClick={[Function]}
                              onResponderGrant={[Function]}
                              onResponderMove={[Function]}
                              onResponderRelease={[Function]}
                              onResponderTerminate={[Function]}
                              onResponderTerminationRequest={[Function]}
                              onStartShouldSetResponder={[Function]}
                              style={
                                Object {
                                  "alignItems": "center",
                                  "backgroundColor": "transparent",
                                  "borderColor": "#42c41d",
                                  "borderRadius": 3,
                                  "borderWidth": 0.8,
                                  "flexBasis": "auto",
                                  "flexGrow": 1,
                                  "flexShrink": 0,
                                  "height": "auto",
                                  "justifyContent": "center",
                                  "opacity": 1,
Nandhika Prayoga's avatar
Nandhika Prayoga committed
456
457
458
459
                                  "paddingBottom": 8,
                                  "paddingLeft": 24,
                                  "paddingRight": 24,
                                  "paddingTop": 8,
Nandhika Prayoga's avatar
Nandhika Prayoga committed
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
                                  "width": "auto",
                                }
                              }
                            >
                              <Text
                                color="#9d9e9d"
                                fontSize="16px"
                                fontWeight="Bold"
                                style={
                                  Array [
                                    Object {
                                      "color": "#9d9e9d",
                                      "fontFamily": "Dosis-Bold",
                                      "fontSize": 16,
                                      "textAlign": "left",
                                      "width": "auto",
                                    },
                                  ]
                                }
                              >
                                LOGOUT
                              </Text>
                            </View>
                          </View>
                          <View
                            paddingBottom={8}
                            paddingLeft={0}
                            paddingRight={0}
                            paddingTop={8}
                            style={
                              Array [
                                Object {
                                  "flexBasis": "auto",
                                  "flexGrow": 0,
                                  "flexShrink": 0,
                                  "paddingBottom": 8,
                                  "paddingLeft": 0,
                                  "paddingRight": 0,
                                  "paddingTop": 8,
                                },
                              ]
                            }
                          />
503
                          <Text
Nandhika Prayoga's avatar
Nandhika Prayoga committed
504
                            fontSize="24px"
505
506
507
508
509
510
                            fontWeight="Bold"
                            style={
                              Array [
                                Object {
                                  "color": "black",
                                  "fontFamily": "Dosis-Bold",
Nandhika Prayoga's avatar
Nandhika Prayoga committed
511
                                  "fontSize": 24,
512
513
514
515
516
517
518
519
                                  "textAlign": "left",
                                  "width": "auto",
                                },
                              ]
                            }
                          >
                            Hari ini saya akan
                          </Text>
Nandhika Prayoga's avatar
Nandhika Prayoga committed
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
                          <View
                            paddingBottom={12}
                            paddingLeft={0}
                            paddingRight={0}
                            paddingTop={12}
                            style={
                              Array [
                                Object {
                                  "flexBasis": "auto",
                                  "flexGrow": 0,
                                  "flexShrink": 0,
                                  "paddingBottom": 12,
                                  "paddingLeft": 0,
                                  "paddingRight": 0,
                                  "paddingTop": 12,
                                },
                              ]
                            }
                          />
539
540
541
542
543
544
                          <View
                            style={
                              Array [
                                Object {
                                  "display": "flex",
                                  "flexDirection": "row",
Nandhika Prayoga's avatar
Nandhika Prayoga committed
545
                                  "width": "100%",
546
547
548
549
550
                                },
                              ]
                            }
                          >
                            <View
Nandhika Prayoga's avatar
Nandhika Prayoga committed
551
552
553
554
555
556
557
558
559
                              accessible={true}
                              focusable={true}
                              onClick={[Function]}
                              onResponderGrant={[Function]}
                              onResponderMove={[Function]}
                              onResponderRelease={[Function]}
                              onResponderTerminate={[Function]}
                              onResponderTerminationRequest={[Function]}
                              onStartShouldSetResponder={[Function]}
560
                              style={
Nandhika Prayoga's avatar
Nandhika Prayoga committed
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
                                Object {
                                  "alignItems": "flex-end",
                                  "backgroundColor": "green",
                                  "borderRadius": 3,
                                  "display": "flex",
                                  "flexDirection": "row",
                                  "flexGrow": 1,
                                  "flexShrink": 1,
                                  "height": 200,
                                  "justifyContent": "flex-start",
                                  "opacity": 1,
                                  "paddingBottom": 16,
                                  "paddingLeft": 16,
                                  "paddingRight": 16,
                                  "paddingTop": 16,
                                  "width": "50%",
                                }
578
579
                              }
                            >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
580
581
582
583
                              <Text
                                color="white"
                                fontSize="20px"
                                fontWeight="Bold"
584
                                style={
Nandhika Prayoga's avatar
Nandhika Prayoga committed
585
586
587
588
589
590
591
592
593
                                  Array [
                                    Object {
                                      "color": "white",
                                      "fontFamily": "Dosis-Bold",
                                      "fontSize": 20,
                                      "textAlign": "left",
                                      "width": "auto",
                                    },
                                  ]
594
595
                                }
                              >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
596
597
                                Mencatat Investigasi Kontak
                              </Text>
598
599
                            </View>
                            <View
Nandhika Prayoga's avatar
Nandhika Prayoga committed
600
601
602
603
                              paddingBottom={0}
                              paddingLeft={16}
                              paddingRight={16}
                              paddingTop={0}
604
605
606
                              style={
                                Array [
                                  Object {
Nandhika Prayoga's avatar
Nandhika Prayoga committed
607
608
609
610
611
612
613
                                    "flexBasis": "auto",
                                    "flexGrow": 0,
                                    "flexShrink": 0,
                                    "paddingBottom": 0,
                                    "paddingLeft": 16,
                                    "paddingRight": 16,
                                    "paddingTop": 0,
614
615
616
                                  },
                                ]
                              }
Nandhika Prayoga's avatar
Nandhika Prayoga committed
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
                            />
                            <View
                              accessible={true}
                              focusable={true}
                              onClick={[Function]}
                              onResponderGrant={[Function]}
                              onResponderMove={[Function]}
                              onResponderRelease={[Function]}
                              onResponderTerminate={[Function]}
                              onResponderTerminationRequest={[Function]}
                              onStartShouldSetResponder={[Function]}
                              style={
                                Object {
                                  "alignItems": "flex-end",
                                  "backgroundColor": "green",
                                  "borderRadius": 3,
                                  "display": "flex",
                                  "flexDirection": "row",
                                  "flexGrow": 1,
                                  "flexShrink": 1,
                                  "height": 200,
                                  "justifyContent": "flex-start",
                                  "opacity": 1,
                                  "paddingBottom": 16,
                                  "paddingLeft": 16,
                                  "paddingRight": 16,
                                  "paddingTop": 16,
                                  "width": "50%",
                                }
                              }
647
                            >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
648
649
650
651
                              <Text
                                color="white"
                                fontSize="20px"
                                fontWeight="Bold"
652
                                style={
Nandhika Prayoga's avatar
Nandhika Prayoga committed
653
654
655
656
657
658
659
660
661
                                  Array [
                                    Object {
                                      "color": "white",
                                      "fontFamily": "Dosis-Bold",
                                      "fontSize": 20,
                                      "textAlign": "left",
                                      "width": "auto",
                                    },
                                  ]
662
663
                                }
                              >
Nandhika Prayoga's avatar
Nandhika Prayoga committed
664
665
                                Memantau Kasus TB
                              </Text>
666
667
                            </View>
                          </View>
Nandhika Prayoga's avatar
Nandhika Prayoga committed
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
                          <View
                            paddingBottom={12}
                            paddingLeft={0}
                            paddingRight={0}
                            paddingTop={12}
                            style={
                              Array [
                                Object {
                                  "flexBasis": "auto",
                                  "flexGrow": 0,
                                  "flexShrink": 0,
                                  "paddingBottom": 12,
                                  "paddingLeft": 0,
                                  "paddingRight": 0,
                                  "paddingTop": 12,
                                },
                              ]
                            }
                          />
687
                          <Text
Nandhika Prayoga's avatar
Nandhika Prayoga committed
688
                            fontSize="24px"
689
690
691
692
693
694
                            fontWeight="Bold"
                            style={
                              Array [
                                Object {
                                  "color": "black",
                                  "fontFamily": "Dosis-Bold",
Nandhika Prayoga's avatar
Nandhika Prayoga committed
695
                                  "fontSize": 24,
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
                                  "textAlign": "left",
                                  "width": "auto",
                                },
                              ]
                            }
                          >
                            Riwayat Investigasi Kontak Anda
                          </Text>
                          <Text
                            color="#828282"
                            fontSize="16px"
                            fontWeight="Regular"
                            style={
                              Array [
                                Object {
                                  "color": "#828282",
                                  "fontFamily": "Dosis-Regular",
                                  "fontSize": 16,
                                  "textAlign": "left",
                                  "width": "auto",
                                },
                              ]
                            }
                          >
                            Klik untuk melakukan perubahan
                          </Text>
                          <View
                            style={
                              Array [
                                Object {
                                  "marginTop": 20,
                                  "paddingRight": 30,
                                  "width": "100%",
                                },
                              ]
                            }
                          >
                            <Modal
                              animationType="fade"
                              hardwareAccelerated={false}
                              transparent={true}
                              visible={true}
                            >
                              <View
                                style={
                                  Array [
                                    Object {
                                      "alignItems": "center",
744
                                      "backgroundColor": "#00000070",
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
                                      "flexBasis": 0,
                                      "flexDirection": "column",
                                      "flexGrow": 1,
                                      "flexShrink": 1,
                                      "justifyContent": "center",
                                    },
                                  ]
                                }
                              >
                                <ActivityIndicator
                                  animating={true}
                                  color="#fff"
                                  hidesWhenStopped={true}
                                  size="large"
                                />
                              </View>
                            </Modal>
                          </View>
                        </View>
                      </View>
                    </RCTScrollView>
                  </View>
                </View>
              </View>
            </View>
          </View>
        </View>
      </View>
    </View>
    <View
      pointerEvents="box-none"
      style={
        Object {
          "left": 0,
          "position": "absolute",
          "right": 0,
          "top": 0,
        }
      }
    >
      <View
        accessibilityElementsHidden={false}
        importantForAccessibility="auto"
        onLayout={[Function]}
        pointerEvents="box-none"
        style={null}
      />
    </View>
  </RNCSafeAreaView>
</View>
`;