File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,16 +13,45 @@ import SwitchButton from "@freakycoder/react-native-switch-button";
1313const App = ( ) => {
1414 return (
1515 < SafeAreaView style = { { flex : 1 , margin : 32 } } >
16- < SwitchButton
17- inactiveImageSource = { require ( "./assets/notification.png" ) }
18- activeImageSource = { require ( "./assets/notification-3.png" ) }
19- text = "Notification"
20- textStyle = { {
21- color : "#757575" ,
22- fontWeight : "600" ,
16+ < Text > App Setting</ Text >
17+ < View
18+ style = { {
19+ flexDirection : "row" ,
20+ width : "100%" ,
21+ justifyContent : "space-evenly" ,
2322 } }
24- onPress = { ( isActive : boolean ) => console . log ( isActive ) }
25- />
23+ >
24+ < SwitchButton
25+ inactiveImageSource = { require ( "./assets/notification.png" ) }
26+ activeImageSource = { require ( "./assets/notification-3.png" ) }
27+ text = "Notification"
28+ textStyle = { {
29+ color : "#757575" ,
30+ fontWeight : "600" ,
31+ } }
32+ onPress = { ( isActive : boolean ) => console . log ( isActive ) }
33+ />
34+ < SwitchButton
35+ inactiveImageSource = { require ( "./assets/notification.png" ) }
36+ activeImageSource = { require ( "./assets/notification-3.png" ) }
37+ text = "Notification"
38+ textStyle = { {
39+ color : "#757575" ,
40+ fontWeight : "600" ,
41+ } }
42+ onPress = { ( isActive : boolean ) => console . log ( isActive ) }
43+ />
44+ < SwitchButton
45+ inactiveImageSource = { require ( "./assets/notification.png" ) }
46+ activeImageSource = { require ( "./assets/notification-3.png" ) }
47+ text = "Notification"
48+ textStyle = { {
49+ color : "#757575" ,
50+ fontWeight : "600" ,
51+ } }
52+ onPress = { ( isActive : boolean ) => console . log ( isActive ) }
53+ />
54+ </ View >
2655 </ SafeAreaView >
2756 ) ;
2857} ;
You can’t perform that action at this time.
0 commit comments