-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
793 lines (699 loc) · 35.2 KB
/
App.js
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
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
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
394
395
396
397
398
399
400
401
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
456
457
458
459
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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
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
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
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
744
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
/**
* @fileOverview Default class for Satviz application.
*
* @author Vojtěch Pospíšil
*/
"use strict";
import React, { Component, useEffect } from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
Dimensions,
Button,
TouchableWithoutFeedback,
TouchableOpacity,
FlatList,
ScrollView,
} from 'react-native';
import {
ViroARSceneNavigator
} from 'react-viro';
import SplashScreen from 'react-native-splash-screen';
import SlidingPanel from 'react-native-sliding-up-down-panels';
import SectionedMultiSelect from 'react-native-sectioned-multi-select';
import Modal from "react-native-modal";
import IconF from 'react-native-vector-icons/Feather';
import IconM from 'react-native-vector-icons/MaterialIcons'
import Icon from 'react-native-vector-icons/Fontisto';
import Slider from '@react-native-community/slider';
import FlashMessage from "react-native-flash-message";
import { showMessage, hideMessage } from "react-native-flash-message";
import CustomInfoModal from './js/components/CustomInfoModal';
import CoordConverter from './utils/coordsConverter'
import * as satelliteSelectItems from './js/res/selectCategories.json';
import * as groundSegmentSelectItems from './js/res/selectGroundSegment.json';
let InitialARScene = require('./js/ARScene');
/**
* Default class of Satviz application.
*/
export default class satviz extends Component {
constructor() {
super();
/**
* Reference to text input for manual satellite selection
* @type {React.RefObject<any>} */
this.manualSatSelectTextInput = React.createRef();
this.state = {
/** Selected satellite IDs from satellite multislect
* @type {Array.<string>} */
selectedItems: [],
/** Indication of reaching maximum of selcted items in select
* @type {boolean} */
maxItems: false,
/** Selected satellite IDs from manual select
* @type {Array.<string>} */
selectedItemsManual: [],
/** Selected GPS ground segment IDS from GS multiselect
* @type {Array.<string>} */
selectedItemsGroundSegment: [],
/** Visibility of help modal window
* @type {boolean} */
helpModalVisible: false,
/** Visibility of satellite info modal (CustomInfoModal)
* @type {boolean} */
satelliteModalVisible: false,
/** Selected satellite which info is displayed in info modal
* @type {SatelliteObject} */
satelliteModalSatellite: null,
/** IDs of satellites with enabled orbit rendering
* @type {Array.<string>} */
orbitIDs: [],
/** Opacity of orbit line (0 = 100% transparent)
* @type {number} */
orbitOpacity: 0.8,
/** Visibility of GPS ground segment information modal
* @type {boolean}*/
groundSegmentModalVisible: false,
/** Visibility of sliding panel
* @type {boolean} */
slidingPanelToggled: false,
/** Text of toggle part of sliding panel
* @type {string} */
slidingPanelText: "Click to reveal satellite selection!",
/** Value of time speed slider
* @type {number} */
timeSpeedSliderValue: 1,
/** Application own time
* @type {Date} */
appDateTime: new Date(),
};
/** Timeout for opacity slider
* @type {any} */
this.opacitySliderTimeout;
/** Maximum number of selected items in satellite multiselect
* @type {number} */
this.maxSelectedItems = 50;
}
componentDidMount = () => {
// Do stuff while splash screen is shown
// After having done stuff (such as async tasks) hide the splash screen
SplashScreen.hide();
}
/**
* Callback for change in satellite multiselect selected items.
*
* @param {Array.<string>} selectedItems IDs of selected items in multiselect
*/
onSatelliteSelectedItemsChange = (selectedItems) => {
if (selectedItems.length >= this.maxSelectedItems) {
if (selectedItems.length === this.maxSelectedItems) {
this.setState({ selectedItems })
}
this.setState({
maxItems: true,
})
return;
}
this.setState({
selectedItems,
maxItems: false,
})
}
/**
* Callback for change in ground segment multiselect selected items.
*
* @param {Array.<string>} selectedItemsGroundSegment IDs of selected items in multiselect
*/
onGroundSegmentSelectedItemsChange = (selectedItemsGroundSegment) => {
this.setState({ selectedItemsGroundSegment });
};
/**
* Change visibility of help modal
*/
toggleHelpModal = () => {
this.setState({ helpModalVisible: !this.state.helpModalVisible });
};
/**
* Callback for setting satellite for satellite info modal.
*
* @param {SatelliteObject} sat Satellite to be displayed info about
*/
satelliteModalSetSatelliteCallback = (sat) => {
this.setState({
satelliteModalSatellite: sat,
});
this.toggleSatelliteModal();
}
/**
* Callback function for setting current app time in this class.
*
* @param {Date} datetime JS Date object
*/
setDateTimeCallback = (datetime) => {
this.setState({
appDateTime: datetime
});
}
/**
* Function for getting current app date in format for display.
*
* @returns {string} Current app date and time
*/
getDateForDisplay = () => {
let year = this.state.appDateTime.getFullYear();
let month = (1 + this.state.appDateTime.getMonth()).toString().padStart(2, '0');
let day = this.state.appDateTime.getDate().toString().padStart(2, '0');
let date = month + '/' + day + '/' + year;
let hours = this.state.appDateTime.getHours();
let minutes = this.state.appDateTime.getMinutes();
let time = hours + ":"+ minutes;
return date + " " + time;
}
/**
* Change visibility of satellite modal.
*/
toggleSatelliteModal = () => {
this.setState({
satelliteModalVisible: !this.state.satelliteModalVisible,
});
};
/**
* Change visibility of GPS ground segment modal.
*/
toggleGroundSegmentModal = () => {
this.setState({
groundSegmentModalVisible: !this.state.groundSegmentModalVisible,
});
}
/**
* Change visibility of sliding panel and change appropriately toggle text.
*/
toggleSlidePanel = () => {
if (this.state.slidingPanelToggled) {
this.setState({ slidingPanelText: "Click to show satellite selection!" });
} else {
this.setState({ slidingPanelText: "Click to hide satellite selection!" });
}
this.setState({ slidingPanelToggled: !this.state.slidingPanelToggled });
};
/**
* Adds satellite manually with ID in manualSatSelectTextInput.
*/
addManual = () => {
// Check whether user added valid input
if (this.manualSatSelectTextInput.current._lastNativeText === undefined ||
isNaN(this.manualSatSelectTextInput.current._lastNativeText) ||
this.manualSatSelectTextInput.current._lastNativeText.trim() == "") {
showMessage({
message: "Satellite ID is 5 digit number only.",
type: "danger",
})
this.manualSatSelectTextInput.current.clear();
return;
}
// Add trailing zeros where the number is shorter than 5 chars
let userInput = this.manualSatSelectTextInput.current._lastNativeText;
if (userInput.length < 5) {
userInput = ("00000" + userInput).slice(-5);
}
if (this.state.selectedItemsManual.includes(userInput) === false) {
this.setState({ selectedItemsManual: [].concat(this.state.selectedItemsManual).concat(userInput) });
} else {
showMessage({
message: "Satellite with this ID is already selected!",
type: "danger",
});
}
this.manualSatSelectTextInput.current.clear();
}
/**
* Removes satellite manually with given ID.
*
* @param {string} removeID ID to be removed from manualy selected IDs
*/
removeManual = (removeID) => {
this.setState({ selectedItemsManual: this.state.selectedItemsManual.filter(id => id != removeID) })
}
/**
* Removes all manualy selected satellites.
*/
removeManualAll = () => {
this.setState({ selectedItemsManual: [] });
}
/**
* Removes satellite with given ID from selected satellites.
*
* @param {string} satID ID of satellite to be removed
*/
removeSatelliteWithError = (satID) => {
// Try to remove from selected in category
if (this.state.selectedItems.includes(satID)) {
let arr = this.state.selectedItems.filter(e => e !== satID);
this.setState({ selectedItems: arr });
}
// Try to remove from selected manually
if (this.state.selectedItemsManual.includes(satID)) {
let arr = this.state.selectedItemsManual.filter(e => e !== satID);
this.setState({ selectedItemsManual: arr });
}
showMessage({
message: "Satellite with ID " + satID + " had to be removed from your selection because of internal problem with calculating its position.",
type: "warning",
});
}
/**
* Get orbit status for satellite in Satellite Info Modal.
*/
isOrbitEnabledForSatelliteInModal = () => {
// No sat selected protection
if (this.state.satelliteModalSatellite === null) {
return false;
}
return this.state.orbitIDs.includes(this.state.satelliteModalSatellite.id);
}
/**
* Change visibility of orbit ofsatellite with given ID.
*
* @param {string} satelliteID Satellite which orbit we want to toggle
*/
toggleOrbitVisibility = (satelliteID) => {
// No sat selected protection
if (this.state.satelliteModalSatellite === null) {
return;
}
if (this.state.orbitIDs.includes(satelliteID)) {
let arr = this.state.orbitIDs.filter(id => id != satelliteID);
this.setState({
orbitIDs: arr,
});
} else {
let current = [...this.state.orbitIDs];
this.setState({
orbitIDs: [...current, satelliteID],
});
}
}
/**
* Renders main window of the Satviz application.
*
* @returns {View} Top level View node
*/
render() {
return (
<View style={styles.container}>
<ViroARSceneNavigator
style={styles.arView}
autofocus={true}
shadowsEnabled={true}
initialScene={{ scene: InitialARScene }}
viroAppProps={{
satelliteClickCallback: this.satelliteModalSetSatelliteCallback,
satelliteIDs: [].concat(this.state.selectedItems).concat(this.state.selectedItemsManual),
groundSegmentIDs: this.state.selectedItemsGroundSegment,
orbitIDs: this.state.orbitIDs,
orbitOpacity: this.state.orbitOpacity,
timeScale: this.state.timeSpeedSliderValue,
removeSatelliteCallback: this.removeSatelliteWithError,
setDateTimeCallback: this.setDateTimeCallback,
}}
/>
<Modal
isVisible={this.state.helpModalVisible}
useNativeDriver={true}
onBackdropPress={this.toggleHelpModal}
>
<View style={styles.helpModal}>
<TouchableOpacity onPress={this.toggleHelpModal} style={styles.modalCloseIcon}>
<Icon name="close-a" size={20} color="grey" />
</TouchableOpacity>
<Text style={styles.helpModalHeading}>About</Text>
<Text style={{ textAlign: 'justify' }}>This application is used to visualize satellites orbiting the Earth in augmented reality. Along with the orbit visualization, it allows the display of basic satellite information (position, speed, ...) as well as the display of positions and information regarding the terrestrial GPS segment. </Text>
<Text style={[styles.helpModalHeading, { marginTop: 10, textAlign: 'center' }]}>How To</Text>
<Text>1. Detect target </Text>
<Text style={{ textAlign: 'center' }}>2. Choose satellite or ground segment element from slide-up menu </Text>
<Text style={{ textAlign: 'center' }}>3. Click on satellites to get more info </Text>
<Text style={[styles.helpModalHeading, { marginTop: 10 }]}>Settings</Text>
<Text>Orbit opacity: </Text>
<Slider
value={this.state.orbitOpacity}
minimumValue={0}
maximumValue={1}
onValueChange={(val) => {
clearTimeout(this.opacitySliderTimeout);
this.opacitySliderTimeout = setTimeout(() => {
this.setState({ orbitOpacity: val })
}, 100)
}
}
style={{ width: '90%' }}
/>
</View>
</Modal>
<TouchableOpacity onPress={this.toggleHelpModal} style={styles.modalIcon}>
<IconM name="help-outline" size={30} color="white" style={styles.iconShadow} />
</TouchableOpacity>
<View style={styles.bodyViewStyle}>
<CustomInfoModal
satellite={this.state.satelliteModalSatellite}
isModalVisible={this.state.satelliteModalVisible}
closeModal={() => this.toggleSatelliteModal()}
orbitEnabled={this.isOrbitEnabledForSatelliteInModal()}
orbitButtonCallback={this.toggleOrbitVisibility}
/>
</View>
<SlidingPanel
headerLayoutHeight={50}
onAnimationStop={this.toggleSlidePanel}
headerLayout={() =>
<View style={styles.headerLayoutStyle}>
<Text style={styles.commonTextStyle}>{this.state.slidingPanelText}</Text>
</View>
}
allowDragging={true}
slidingPanelLayout={() =>
<View style={styles.slidingPanelLayoutStyle}>
<View style={{ flex: 1 }}>
<ScrollView style={{ flex: 1 }}>
<View
style={{
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
alignItems: 'center',
marginVertical: 10,
}}
>
<TextInput
style={{
height: 40,
width: '70%',
paddingLeft: '3%',
}}
placeholder="Choose by typing satellite ID"
ref={this.manualSatSelectTextInput}
keyboardType='numeric'
value={this.state.text}
/>
<View style={{ width: '20%' }}>
<Button title="Add!" onPress={this.addManual} />
</View>
</View>
<View
style={{
flexWrap: 'wrap',
alignItems: 'center',
justifyContent: 'flex-start',
flexDirection: 'row',
}}
>
{
this.state.selectedItemsManual.length > 1 ? (
<View
style={{
overflow: 'hidden',
justifyContent: 'center',
height: 34,
borderColor: colors.selectedBubble,
flexDirection: 'row',
alignItems: 'center',
paddingLeft: 10,
margin: 3,
paddingTop: 0,
paddingRight: 10,
paddingBottom: 0,
borderRadius: 20,
borderWidth: 1,
}}
>
<TouchableOpacity
onPress={() => {
this.removeManualAll()
}}
style={{
borderTopRightRadius: 20,
borderBottomRightRadius: 20,
}}
>
<Text
style={{
color: colors.selectedBubble,
fontSize: 13,
marginRight: 0,
}}
>
Remove All
</Text>
</TouchableOpacity>
</View>
) : null
}
{
this.state.selectedItemsManual.map((item, key) => (
<View
style={{
overflow: 'hidden',
justifyContent: 'center',
height: 34,
borderWidth: 1,
borderRadius: 20,
borderColor: colors.selectedBubble,
flexDirection: 'row',
alignItems: 'center',
paddingLeft: 10,
margin: 3,
paddingTop: 0,
paddingRight: 0,
paddingBottom: 0,
color: colors.selectedBubble,
}}
key={key}
>
<Text
numberOfLines={1}
style={{
fontSize: 13,
marginRight: 0,
color: colors.selectedBubble,
}}
>
{item}
</Text>
<TouchableOpacity
onPress={() => this.removeManual(item)}
style={{
borderTopRightRadius: 20,
borderBottomRightRadius: 20,
}}
>
<IconF
name="x"
style={{
fontSize: 16,
marginHorizontal: 6,
marginVertical: 7,
color: colors.selectedBubble,
}}
/>
</TouchableOpacity>
</View>
))
}
</View>
<View style={styles.hairlineSplitLine} />
<View style={{ flex: 1, justifyContent: 'center' }}>
<SectionedMultiSelect
items={satelliteSelectItems.default}
uniqueKey="id"
subKey="children"
selectText="Choose satellites from catogories"
searchPlaceholderText="Search by name..."
showDropDowns={true}
readOnlyHeadings={false}
selectChildren={true}
showRemoveAll={true}
onSelectedItemsChange={this.onSatelliteSelectedItemsChange}
selectedItems={this.state.selectedItems}
confirmText={`${this.state.maxItems ? 'Max satellites selected' : 'Confirm'}`}
/>
</View>
<View style={[styles.hairlineSplitLine]} />
<View style={{ flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }}>
<View style={{ width: '80%' }}>
<SectionedMultiSelect
items={groundSegmentSelectItems.default}
uniqueKey="id"
subKey="children"
selectText="Choose ground segments"
searchPlaceholderText="Search by name..."
showDropDowns={false}
readOnlyHeadings={true}
selectChildren={true}
// expandDropDowns={true} // causes weird bug at bottom part of screen
showRemoveAll={true}
onSelectedItemsChange={this.onGroundSegmentSelectedItemsChange}
selectedItems={this.state.selectedItemsGroundSegment}
/>
</View>
<View style={{ position: 'absolute', top: 15, right: 25 }}>
<TouchableOpacity onPress={this.toggleGroundSegmentModal}>
<IconF name="info" size={30} color="gray" style={styles.iconShadow} />
</TouchableOpacity>
</View>
<View></View>
</View>
<Modal
isVisible={this.state.groundSegmentModalVisible}
useNativeDriver={true}
onBackdropPress={this.toggleGroundSegmentModal}
>
<View style={styles.groundSegmentModal}>
<View style={{ height: '93%' }}>
<ScrollView>
<Text style={styles.groundSegmentHeading}>Master Control Stations and Alternate MCS</Text>
<Text style={styles.groundSegmentColors}>Red and Gold</Text>
<Text style={styles.groundSegmentText}>The master control station, located at Schriever Air Force Base in Colorado Springs, Colorado, is responsible for overall management of the remote monitoring and transmission sites. GPS ephemeris being a tabulation of computed positions, velocities and derived right ascension and declination of GPS satellites at specific times, replace "position" with "ephemeris" because the Master Control Station computes not only position but also velocity, right ascension and declination parameters for eventual upload to GPS satellites.</Text>
<Text style={[styles.groundSegmentHeading, { marginTop: 5 }]}>Monitor Stations</Text>
<Text style={styles.groundSegmentColors}>AFMS blue, AFSCN yellow, NGA purple</Text>
<Text style={styles.groundSegmentText}>Six monitor stations are located at Schriever Air Force Base in Colorado, Cape Canaveral, Florida, Hawaii, Ascension Island in the Atlantic Ocean, Diego Garcia Atoll in the Indian Ocean, and Kwajalein Island in the South Pacific Ocean.Six additional monitoring stations were added in 2005 in Argentina, Bahrain, United Kingdom, Ecuador, Washington DC, and Australia. Each of the monitor stations checks the exact altitude, position, speed, and overall health of the orbiting satellites. The control segment uses measurements collected by the monitor stations to predict the behavior of each satellite's orbit and clock. The prediction data is up-linked, or transmitted, to the satellites for transmission back to the users. The control segment also ensures that the GPS satellite orbits and clocks remain within acceptable limits. A station can track up to 11 satellites at a time. This "check-up" is performed twice a day, by each station, as the satellites complete their journeys around the earth. Noted variations, such as those caused by the gravity of the moon, sun and the pressure of solar radiation, are passed along to the master control station.</Text>
<Text style={[styles.groundSegmentHeading, { marginTop: 5 }]}>Ground Antennas</Text>
<Text style={styles.groundSegmentColors}>Green</Text>
<Text style={styles.groundSegmentText}>
The Ground Antennas uplink data to the satellites via S-band radio signals. These data includes ephemerides and clock correction information transmitted within the Navigation Message, as well as command telemetry from the MCS.
This information can be uploaded to each satellite three times per day, i.e., every 8 hours; nevertheless, it is usually updated just once a day.
</Text>
</ScrollView>
</View>
<View style={{ width: '40%', marginTop: 10 }}>
<Button title="Hide info" onPress={this.toggleGroundSegmentModal} />
</View>
</View>
</Modal>
<View style={[styles.hairlineSplitLine]} />
<View style={{ marginHorizontal: 10, marginTop: 10}}>
<View style={{flex: 1, flexDirection: "row"}}>
<View style={{width: "80%"}}>
<Text style={{paddingBottom: 5, color: "black"}}>Current date: <Text style={{fontWeight: "bold"}}>{this.getDateForDisplay()}</Text></Text>
<Text style={{color: "black"}}>Set time speed ({Math.trunc(this.state.timeSpeedSliderValue).toString()}x normal)</Text>
<Slider
value={this.state.timeSpeedSliderValue}
minimumValue={-10000}
maximumValue={10000}
step={500}
onValueChange={(val) => this.setState({ timeSpeedSliderValue: val })}
/>
</View>
<View style={{height: "50%", marginTop: 15}}>
<Button
title="Reset"
onPress={() => this.setState({ timeSpeedSliderValue: 1 })}
/>
</View>
</View>
</View>
<View style={{ paddingBottom: 400 }}></View>
</ScrollView>
</View>
</View>
}
/>
<FlashMessage
position={"top"}
autoHide={true}
/>
</View>
);
}
}
module.exports = satviz
// Constants used in styles
const { width, height } = Dimensions.get('window');
const colors = {
selectedBubble: '#848787',
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
bodyViewStyle: {
flex: 1,
position: 'absolute',
justifyContent: 'center',
alignItems: 'center',
},
arView: {
flex: 1,
position: 'absolute',
height: '100%',
},
headerLayoutStyle: {
width,
height: 50,
backgroundColor: 'grey',
justifyContent: 'center',
alignItems: 'center',
},
slidingPanelLayoutStyle: {
width,
height,
backgroundColor: '#ffffff',
},
commonTextStyle: {
color: 'white',
fontSize: 18,
},
modalIcon: {
position: 'absolute',
right: '5%',
top: '2%',
},
helpModal: {
backgroundColor: "white",
marginHorizontal: '10%',
padding: 15,
height: '50%',
textAlign: 'center',
alignItems: 'center',
},
helpModalHeading: {
fontWeight: 'bold',
textAlign: 'center',
fontSize: 16
},
modalCloseIcon: {
position: 'absolute',
right: 9,
top: 9,
},
groundSegmentModal: {
backgroundColor: "white",
marginHorizontal: '10%',
height: '80%',
textAlign: 'right',
alignItems: 'center',
padding: '3%',
paddingBottom: 0,
},
groundSegmentHeading: {
fontWeight: 'bold',
textAlign: 'center',
fontSize: 16
},
groundSegmentText: {
textAlign: 'justify',
},
groundSegmentColors: {
textAlign: 'center',
fontSize: 12
},
hairlineSplitLine: {
borderBottomColor: 'black',
borderBottomWidth: StyleSheet.hairlineWidth,
},
iconShadow: {
shadowOpacity: 2,
textShadowRadius: 2,
textShadowOffset: { width: 0, height: 0 }
},
});