@@ -9,6 +9,8 @@ import PrimaryColors from "../styles/PrimaryColors";
99import Typography from "../styles/Typography" ;
1010import Dashboard from '../dashboard/Dashboard' ;
1111import Settings from "../settings/Settings" ;
12+ import Config from 'react-native-config' ;
13+
1214const nqasIcon = require ( '../img/nqas.png' ) ;
1315const kayakalpIcon = require ( '../img/kayakalp.png' ) ;
1416const nhsrcbanner = require ( '../img/nhsrcbanner.png' ) ;
@@ -31,6 +33,7 @@ class ModeSelection extends AbstractComponent {
3133 } ,
3234 modeContainer : {
3335 flexDirection : 'row' ,
36+ flexWrap : 'wrap' ,
3437 justifyContent : 'space-between' ,
3538 } ,
3639 header : {
@@ -52,6 +55,15 @@ class ModeSelection extends AbstractComponent {
5255 }
5356
5457 render ( ) {
58+ let showDakshata = Config . DAKSHATA === 'true' ;
59+ const Dakshata = showDakshata ? (
60+ < TouchableWithoutFeedback onPress = { this . handleOnPress ( "Dakshata" ) } >
61+ < View >
62+ < Text style = { [ Typography . paperFontDisplay2 , { color : 'white' , } ] } > Dakshata</ Text >
63+ </ View >
64+ </ TouchableWithoutFeedback >
65+ ) : null ;
66+ const additionalStyles = showDakshata ? { alignItems : 'center' , justifyContent : 'center' } : { } ;
5567 return (
5668 < Container theme = { FlatUITheme } >
5769 < Header style = { ModeSelection . styles . header } >
@@ -71,7 +83,7 @@ class ModeSelection extends AbstractComponent {
7183 } ] } > GUNAK गुणक</ Title >
7284 </ Header >
7385 < Content >
74- < View style = { ModeSelection . styles . container } >
86+ < View style = { [ ModeSelection . styles . container , ] } >
7587 < Text style = { [ Typography . paperFontHeadline , {
7688 color : PrimaryColors . yellow ,
7789 alignSelf : 'center' ,
@@ -88,7 +100,7 @@ class ModeSelection extends AbstractComponent {
88100 } ] } >
89101 Choose an Assessment Type
90102 </ Text >
91- < View style = { ModeSelection . styles . modeContainer } >
103+ < View style = { [ ModeSelection . styles . modeContainer , additionalStyles ] } >
92104 < TouchableWithoutFeedback onPress = { this . handleOnPress ( "NQAS" ) } >
93105 < View style = { ModeSelection . styles . mode } >
94106 < Image resizeMode = "contain"
@@ -111,6 +123,7 @@ class ModeSelection extends AbstractComponent {
111123 source = { kayakalpIcon } />
112124 </ View >
113125 </ TouchableWithoutFeedback >
126+ { Dakshata }
114127 </ View >
115128 </ View >
116129 </ Content >
0 commit comments