-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
789 lines (702 loc) · 23.5 KB
/
App.js
File metadata and controls
789 lines (702 loc) · 23.5 KB
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
import React, { useState, useEffect, useRef} from 'react';
import { StyleSheet, Text, View, Animated, ScrollView, Dimensions, SafeAreaView, TouchableOpacity,Image, Alert, Modal, Pressable, Switch , TextInput , AppRegistry, Platform ,FlatList} from 'react-native';
import AsyncStorage from '@react-native-async-storage/async-storage';
//import { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
import { Ionicons } from '@expo/vector-icons';
//import Barcode from 'react-barcode';
import ImagePickerComponent from "./ImagePickerComponent";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import noti from "./Notification";
import Barcode from './Barcode';
import * as Device from 'expo-device';
import * as Notifications from 'expo-notifications';
import { getCameraRollPermissionsAsync } from 'expo-image-picker';
// import Select from "react-dropdown-select";
const {height:SCREEN_HEIGHT, width:SCREEN_WIDTH} = Dimensions.get('window');
console.log(SCREEN_HEIGHT,SCREEN_WIDTH)
const Stack = createNativeStackNavigator();
{/* 홈 스크린 */}
function HomeScreen(props) {
const [CARDLIST, setCARDLIST] = useState([]);
const [cardOption, setcardOption] = useState(1);
const [cardMargin, setcardMargin]=useState(0);
const [NowSelect,setNowSelect]=useState("");
const CardItem = ({shop,product,date,barcode,color})=>{
const storeData = async (value, key) => {
try {
const jsonValue = JSON.stringify(value)
await AsyncStorage.setItem(key, jsonValue)
console.log(jsonValue, "store")
setaddCardVisible(!addCardVisible)
} catch (e) {
// saving error
}
}
function selectedCardStyle(){
if(NowSelect==barcode){
return {
marginBottom:0
}
}else return { marginBottom : -160}
}
return (
<View style={[styles.cardView]}>
{cardOption ? null:(
<View>
<View style={styles.setting_btn}>
<TouchableOpacity onPress={() => {storeData(makeCoupon(shop, product, date, barcode, color, true), barcode),
setcardOption(!cardOption),setcardMargin(!cardMargin),getUnusedCard(false)}}>
<Ionicons name="arrow-redo-circle-outline" size={24} color="blue"/></TouchableOpacity>
</View>
<View style={styles.setting_btn}>
<TouchableOpacity onPress={() => {removeValue(barcode),getUnusedCard(true);}}>
<Ionicons name="trash-outline" size={24} color="red"/></TouchableOpacity>
</View>
</View>)}
<Pressable onPress={()=>setNowSelect(barcode)} style={[selectedCardStyle(), styles.card,{backgroundColor:color}]}>
<View style={styles.centeredView}>
<Text style={[{alignSelf:'flex-start', position: 'absolute', top:10, left:10},styles.cardText]}> {shop}</Text>
<Text style={[{alignSelf:'flex-end', position:'absolute',top:10, right:10},styles.cardText]}> {"~"+date}</Text>
<Text style={[{alignSelf:'flex-start', position: 'absolute', top:40, left:10, fontWeight:'bold'},styles.cardText]}> {product} </Text>
<View style={{backgroundColor:'white',width:'100%', alignItems:'center'}}>
<Barcode value={barcode} options={{ format: 'CODE128', background: 'white', font:'',width:2, }}/>
</View>
</View>
</Pressable>
</View>
)
}
const getUnusedCard = async (val) => {
let CARD_RENDER = "";
let keys = await AsyncStorage.getAllKeys()
let temList=[]
for (let key in keys){
const cardInfo = await AsyncStorage.getItem(keys[key])
cardInfo = JSON.parse(cardInfo)
if (val==cardInfo["use"]){
let CARD_Shop = cardInfo.shop
let CARD_Barcode = cardInfo.barcode
let CARD_Product = cardInfo.product
let CARD_date = cardInfo.date
let CARD_color = cardInfo.color
console.log(CARD_Shop,CARD_Barcode);
temList.push(Object({shop:CARD_Shop, product:CARD_Product, date:CARD_date, barcode:CARD_Barcode,color:CARD_color}));
}
}
setCARDLIST(temList);
console.log("확인",temList[0].barcode);
return CARD_RENDER
};
const removeValue = async (value) => {
try {
await AsyncStorage.removeItem(value)
} catch(e) {
// remove error
}
console.log('Done.')
}
useEffect(() => {
console.log("useEffect 실행");
getUnusedCard(false);
},[]);
const renderItem = ({item})=>(
<CardItem shop={item.shop} product={item.product} date={item.date} barcode={item.barcode} color={item.color} />
);
return (
<SafeAreaView style={styles.main}>
{/* 로고, 추가, 설정 버튼 */}
<View style={styles.topMenu}>
<TouchableOpacity style={styles.home_btn}>
<Image style={styles.logo} source={{uri: 'https://cdn.discordapp.com/attachments/971817216905478205/971817234861293608/logo.png',}}/>
</TouchableOpacity>
<View style={{flex:2}}></View>
<View style={styles.setting_btn}>
<TouchableOpacity onPress={() => {props.navigation.push('AddScreen');}}>
<Ionicons name="add" size={24} color="black"/></TouchableOpacity>
</View>
<View style={styles.setting_btn}>
<TouchableOpacity onPress={() => {setcardOption(!cardOption),setcardMargin(!cardMargin)}}>
<Ionicons name="pencil-outline" size={24} color="black"/></TouchableOpacity>
</View>
<View style={styles.setting_btn}>
<TouchableOpacity onPress={() => {props.navigation.push('SettingScreen');}}>
<Ionicons name="ios-settings-outline" size={24} color="black" /></ TouchableOpacity>
</View>
</View>
{/* 카드 선택 버튼 */}
<View style={styles.cardSelect}>
<TouchableOpacity style={styles.cardSelect_btn} onPress={()=>{ getUnusedCard(false);}}><Text style={styles.cardSelect_txt}>사용가능</Text></TouchableOpacity>
<TouchableOpacity style={styles.cardSelect_btn} onPress={()=>{ getUnusedCard(true);}}><Text style={styles.cardSelect_txt}>사용완료</Text></TouchableOpacity>
</View>
{/* 카드 표시 뷰 */}
<View style={styles.cardList}>
<FlatList
data={CARDLIST}
renderItem={renderItem}
keyExtractor={item => item.barcode}></FlatList>
</View>
</SafeAreaView>
);
}
{/* 카드 추가 스크린 */}
function AddScreen(props) {
const [SHOP, onChangeSHOP] = React.useState('');
const [Product, onChangeProduct] = React.useState('');
const [Date, onChangedate] = React.useState('');
const [Barcode, onChangeBarcode] = React.useState(false);
const [Color, onChangeColor] = React.useState("gainsboro");
{/* OCR 데이터 정리 */}
function setInputData(ret){
console.log("setInputData 실행" + ret);
let afterret=ret.split('\n');
let f_shop=afterret[0];
let f_product=afterret[1];
let f_date=afterret[7];
let f_barcode=afterret[5];
onChangeSHOP(f_shop);
onChangeProduct(f_product);
onChangedate(f_date);
onChangeBarcode(f_barcode);
}
{/* 데이터 관리 */}
const clearAll = async () => {
try {
await AsyncStorage.clear()
} catch(e) {
// clear error
}
console.log('Done.')
}
const getAllKeys = async () => {
let keys = []
try {
keys = await AsyncStorage.getAllKeys()
} catch(e) {
// read key error
}
console.log(keys)
}
const getData = async (key) => {
try {
const jsonValue = await AsyncStorage.getItem(key)
console.log(jsonValue)
return jsonValue != null ? JSON.parse(jsonValue) : null;
} catch(e) {
console.log("Data load ERROR")
}
}
const storeData = async (value, key) => {
try {
const jsonValue = JSON.stringify(value)
await AsyncStorage.setItem(key, jsonValue)
console.log(jsonValue, "store")
setaddCardVisible(!addCardVisible)
} catch (e) {
// saving error
}
}
const removeValue = async (value) => {
try {
await AsyncStorage.removeItem(value)
} catch(e) {
// remove error
}
console.log('Done.')
}
useEffect(() => {
onChangeSHOP('');
onChangeProduct('');
onChangedate('');
onChangeBarcode(false);
onChangeColor('gainsboro');
},[]);
function applySelectStyle(mycolor){
if(mycolor==Color){
return styles.selectColorOutline;
}else return styles.nonSelectColorOutline;
}
return (
<SafeAreaView style={styles.main}>
{/* 로고, 추가, 설정 버튼 */}
<View style={styles.topMenu}>
<View style={styles.setting_btn}>
<TouchableOpacity style={{ position:'absolute', left:'0%',marginLeft:20,top:'0%'}} onPress={()=>{props.navigation.push('HomeScreen');}}><Ionicons name="chevron-back-outline" size={30} color="black" /></TouchableOpacity>
</View>
</View>
{/* 이미지 OCR */}
<View style={[styles.cardSelect, { backgroundColor: 'rgba(0,0,0,0.0)'}]}>
<Pressable
style={[styles.button, styles.buttonClose,{
backgroundColor : '#DADADA',height:40,position:'absolute',right:'0%',marginRight:30,borderColor:'black',borderWidth:1,
}]}>
<ImagePickerComponent onSubmit={setInputData}/>
</Pressable>
</View>
{/* 수기 입력파트 */}
<View style={styles.cardList}>
<View style={styles.settingText}>
<Text style={styles.settingText}>브랜드</Text>
<TextInput style={styles.input} onChangeText={onChangeSHOP} placeholder="교환처를 입력하세요." maxLength={10} value={SHOP} />
</View>
<View style={styles.settingText}>
<Text style={styles.settingText}>이름</Text>
<TextInput style={styles.input} onChangeText={onChangeProduct} placeholder="제품명을 입력하세요." maxLength={10} value={Product} />
</View>
<View style={styles.settingText}>
<Text style={styles.settingText}>사용기간</Text>
<TextInput style={styles.input} onChangeText={onChangedate} placeholder="0000년 00월 00일" value={Date}/>
</View>
<View style={styles.settingText}>
<Text style={styles.settingText}>바코드 숫자</Text>
<TextInput style={styles.input} onChangeText={onChangeBarcode} value={Barcode} placeholder="바코드 숫자를 입력하세요" returnKeyType="done" keyboardType="number-pad"/>
</View>
{/* <View style={styles.settingText}>
<Select options={options} onChange={(values) => this.setValues(values)} /></View> */}
<View style={styles.settingText}>
<Text style={styles.settingText}>Color</Text>
<Pressable onPress={()=>{onChangeColor("gainsboro");}} style={[styles.colorPicker,{left:100,backgroundColor : 'gainsboro'},applySelectStyle("gainsboro")]}/>
<Pressable onPress={()=>{onChangeColor("lightpink");}} style={[styles.colorPicker,{left:150,backgroundColor : 'lightpink',},applySelectStyle("lightpink")]}/>
<Pressable onPress={()=>{onChangeColor("#a9dec8");} } style={[styles.colorPicker,{left:200,backgroundColor : '#a9dec8'},applySelectStyle("#a9dec8")]}/>
<Pressable onPress={()=>{onChangeColor("lightblue");}} style={[styles.colorPicker,{left:250,backgroundColor : 'lightblue'},applySelectStyle("lightblue")]}/>
<Pressable onPress={()=>{onChangeColor("#cba9de");}} style={[styles.colorPicker,{left:300,backgroundColor : '#cba9de'},applySelectStyle("#cba9de")]}/>
</View>
{/* 확인 취소 버튼 */}
<View>
<View style={{height:70}}>
<Pressable
style={[styles.button, styles.buttonClose,{
backgroundColor : '#A6A6A6',
position: 'absolute',
left:'50%', width:85,height:50,
marginLeft:-100
}]}
onPress={()=>{
storeData(makeCoupon(SHOP, Product, Date, Barcode, Color, false), Barcode);
props.navigation.push('HomeScreen',{ dataChanged : true}); } }>
<Text style={[styles.textStyle, {
color: 'black',
fontSize:20,
top:5
}]}>추가</Text>
</Pressable>
<Pressable
style={[styles.button, styles.buttonClose,{
backgroundColor : '#F0F0F0',
position: 'absolute',
left:'50%', width:85,height:50,
marginLeft:20
}]}
onPress={() =>{
props.navigation.push('HomeScreen',{ dataChanged : false});}}>
<Text style={[styles.textStyle, {
color: 'black',
fontSize:20,
top:5
}]}>취소</Text>
</Pressable>
</View>
<View style={{margin:50}}></View>
</View>
</View>
</SafeAreaView>
)
}
{/* 설정 스크린 */}
function SettingScreen(props){
const [expoPushToken, setExpoPushToken] = useState('');
const [notification, setNotification] = useState(false);
const notificationListener = useRef();
const responseListener = useRef();
useEffect(() => {
registerForPushNotificationsAsync().then(token => setExpoPushToken(token));
// This listener is fired whenever a notification is received while the app is foregrounded
notificationListener.current = Notifications.addNotificationReceivedListener(notification => {
setNotification(notification);
});
// This listener is fired whenever a user taps on or interacts with a notification (works when app is foregrounded, backgrounded, or killed)
responseListener.current = Notifications.addNotificationResponseReceivedListener(response => {
console.log(response);
});
return () => {
Notifications.removeNotificationSubscription(notificationListener.current);
Notifications.removeNotificationSubscription(responseListener.current);
};
}, []);
async function registerForPushNotificationsAsync() {
let token;
if (Device.isDevice) {
const { status: existingStatus } = await Notifications.getPermissionsAsync();
let finalStatus = existingStatus;
if (existingStatus !== 'granted') {
const { status } = await Notifications.requestPermissionsAsync();
finalStatus = status;
}
if (finalStatus !== 'granted') {
alert('Failed to get push token for push notification!');
return;
}
token = (await Notifications.getExpoPushTokenAsync()).data;
console.log(token);
} else {
alert('Must use physical device for Push Notifications');
}
if (Platform.OS === 'android') {
Notifications.setNotificationChannelAsync('default', {
name: 'default',
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250],
lightColor: '#FF231F7C',
});
}
return token;
}
const [isEnabled, setIsEnabled] = useState(false);
const [switchValue, setswitchValue] = useState("");
const toggleSwitch = () => (setIsEnabled(!switchValue),setswitchValue(!switchValue))
const setPush = async () => {
let keys = await AsyncStorage.getAllKeys()
console.log("getAllKeys")
for (let key in keys){
const cardInfo = await AsyncStorage.getItem(keys[key])
console.log("getItem")
cardInfo = JSON.parse(cardInfo)
console.log(cardInfo.use)
if (cardInfo.use==false){
noti(new Date(dateParser(cardInfo.date)),5000)
}
}
setIsEnabled(false);
};
const clerPush = async () => {
noti(new Date(),-1);
console.log("clerPush!")
}
{isEnabled ? (
setPush()
) : (
clerPush()
) }
function dateParser(str) {
let y = str.slice(0, 4);
let m = str.slice(6, 8);
let d = str.slice(10, 12);
console.log(y+'-'+m+'-'+d)
return y+'-'+m+'-'+d
}
return (
<SafeAreaView style={styles.main}>
{/* 헤더 */}
<View style={styles.topMenu}>
<View style={styles.setting_btn}>
<TouchableOpacity style={{ position: 'absolute', left: '0%', marginLeft: 20, top: '0%' }} onPress={() => { props.navigation.push('HomeScreen'); }}><Ionicons name="chevron-back-outline" size={30} color="black" /></TouchableOpacity>
</View>
</View>
{/* 메인화면 */}
<View style={styles.option_main}>
{/* 설정 화면 */}
{/*사용 방법*/}
<View style={styles.option_box}>
<Text style={styles.option_large_text}>사용방법</Text>
</View>
{/*사용 방법 설명*/}
<View style={styles.option_box2}>
<Text style={styles.option_small_text}>
갤러리에서 기프티콘을 불러오거나, {'\n'}
사용자가 직접 데이터를 입력하여 등록한다 {'\n'}
사용자가 임의로 기프티콘 색을 변경하거나, {'\n'}
미사용된 기프티콘만 따로 볼 수있다
</Text>
</View>
{/*설정 변경*/}
<View style={styles.option_box}>
<Text style={styles.option_large_text}>설정 </Text>
</View>
<View style={styles.option_box3}>
<Text style={styles.option_small_text}>알림설정</Text>
<Switch style={styles.option_notification_switch} onValueChange={toggleSwitch} value={switchValue} />
</View>
<View style={styles.option_box}>
<Text style={styles.option_large_text}>기타 </Text>
</View>
<View style={styles.option_box2}>
<Text style={styles.option_small_text}>개발자 정보</Text>
<Text style={styles.option_small_text2}>남현정 jeong_opo@naver.com</Text>
<Text style={styles.option_small_text2}>김현섭 nill0806@gmail.com</Text>
<Text style={styles.option_small_text2}>이민혁 wsx1341@kakao.com</Text>
</View>
<View style={styles.option_box2}>
<Text style={styles.option_small_text}>애플리케이션 버전</Text>
<Text style={styles.option_small_text2}>0.2.1</Text>
</View>
</View>
</SafeAreaView>
)
}
{/* 네비게이터 */}
function App() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="HomeScreen" component={HomeScreen} />
<Stack.Screen name="AddScreen" component={AddScreen} />
<Stack.Screen name="SettingScreen" component={SettingScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
{/* 카드 정보 객체 생성 */}
var coupon = new Object();
var coupon = {
shop : null,
product : null,
date : null,
barcode : null,
use : false,
}
function makeCoupon(SHOP, Product, Date, Barcode, color, use){
coupon.shop = SHOP;
coupon.product = Product;
coupon.date = Date;
coupon.barcode = Barcode;
coupon.color = color;
coupon.use = use;
return coupon
}
{/* 스타일 */}
const styles = StyleSheet.create({
main: {
flex:1,
backgroundColor: 'white',
},
centeredView: {
flex:12,
justifyContent: 'flex-end',
alignItems: 'center',
},
leftView : {
flex: 1,
justifyContent: 'flex-end',
alignItems: 'flex-start',
},
modalView: {
flex: 0.5,
margin: 20,
backgroundColor: 'white',
borderRadius: 10,
padding: 10,
alignItems: 'center',
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.25,
shadowRadius: 4,
elevation: 5,
},
button: {
borderRadius: 15,
padding: 10,
elevation: 2,
margin:10
},
buttonOpen: {
backgroundColor: '#F194FF',
},
buttonClose: {
backgroundColor: '#2196F3',
},
textStyle: {
color: 'white',
fontWeight: 'bold',
textAlign: 'center',
},
modalText: {
fontSize: 25,
marginBottom: 15,
textAlign: 'center',
},
settingText:{
flex:1,
fontSize: 8,
flexDirection: "row",
margin:10,
marginLeft:20,
fontSize:16,
alignItems: 'center',
},
input: {
flex:3,
height: 35,
width: 20,
margin: 12,
borderBottomColor:'#9B9EA3',
borderBottomWidth: 0,
padding: 10,
flexDirection: "row",
margin:0,
fontSize:16,
},
topMenu : {
flex:1.5,
flexDirection : "row",
backgroundColor: 'white',
justifyContent :"center",
alignItems : "center",
},
logo: {
width: 100,
height: 50,
},
cardSelect : {
flex:1,
flexDirection : "row",
backgroundColor: 'white',
justifyContent :"center",
alignItems : "center",
paddingHorizontal: SCREEN_WIDTH/5,
},
cardList : {
flex:12,
backgroundColor: 'white',
},
cardView:{
flex:1,
flexDirection : "row",
},
card : {
//marginBottom: -150,
flex : 5,
height: SCREEN_HEIGHT/3.5,
backgroundColor: 'white',
paddingVertical: 8,
borderRadius: 15,
margin:15,
shadowColor: '#000',
shadowOffset: {
width: 0,
height: 2,
},
shadowOpacity: 0.1,
shadowRadius: 5,
elevation: 5,
},
cardText : {
flex:1,
flexDirection : "row",
alignItems : "center",
fontSize : 20,
},
cardSelect_btn: {
flex:1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
cardSelect_txt: {
fontSize : 20,
},
home_btn: {
flex:3,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
add_btn: {
flex:1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
setting_btn: {
flex:1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
colorPicker:{
flex:1,
position: 'absolute',
borderRadius : 15,
width:30,
height : 30
},
selectColorOutline:{
borderWidth: 2,
borderColor: 'black',
borderStyle : "dashed"
},
nonSelectColorOutline :{
borderWidth : 0,
},
option_main: {
flex: 13.5,
flexDirection: "column",
alignItems: 'stretch',
justifyContent: 'flex-start',
},
option_box: {
flexDirection: "row",
paddingLeft: 10,
justifyContent: 'center',
alignItems: 'center',
/*borderBottomColor: 'black',
borderBottomWidth: 1,*/
marginTop: 12,
marginBottom: 6,
},
option_box2: {
flexDirection: "column",
paddingLeft: 10,
margin: 2,
marginVertical: 8,
/*borderBottomColor: 'black',
borderBottomWidth: 1,*/
},
option_box3: {
flexDirection: "row",
paddingLeft: 10,
justifyContent: 'space-between',
alignItems: 'flex-start',
marginVertical: 4,
/*borderBottomColor: 'black',
borderBottomWidth: 1,*/
},
option_large_text: {
flex: 1,
fontSize: 24,
fontWeight: "bold",
margin: 2,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
paddingLeft: 10,
marginVertical: 8,
},
option_small_text: {
fontSize: 20,
margin: 2,
flexDirection: 'column',
alignItems: 'flex-start',
paddingLeft: 10,
marginVertical: 8,
},
option_small_text2: {
fontSize: 16,
margin: 2,
flexDirection: 'column',
alignItems: 'flex-end',
paddingLeft: 10,
color: 'gray',
},
option_notification_switch: {
height: 35,
borderBottomColor: '#9B9EA3',
borderBottomWidth: 1,
flexDirection: "column",
alignItems: 'flex-end',
marginRight: 10,
},
});