Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #38 from ZendyLim/fearue/fukusshuAndHL4
Browse files Browse the repository at this point in the history
New Seperate Flash card
  • Loading branch information
viinkelvin authored May 22, 2018
2 parents cf7a0d2 + 0b32e00 commit 5cc84cf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
8 changes: 7 additions & 1 deletion app/config/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export let strings = new LocalizedStrings({
GOI_LIST : "VOCABULARY LIST",
BUNPO_LIST : "GRAMMAR LIST",
KANJI_LIST : "KANJI LIST",
FLASH_CARD_HIRAGANA: "FLASH CARD HIRAGANA",
FLASH_CARD_KATAKANA: "FLASH CARD KATAKANA",

},
ja: {
loginGuest: "japan",
Expand Down Expand Up @@ -82,5 +85,8 @@ export let strings = new LocalizedStrings({
GOI_LIST : "VOCABULARY LIST",
BUNPO_LIST : "GRAMMAR LIST",
KANJI_LIST : "KANJI LIST",
}
FLASH_CARD_HIRAGANA: "FLASH CARD HIRAGANA",
FLASH_CARD_KATAKANA: "FLASH CARD KATAKANA",

}
});
2 changes: 1 addition & 1 deletion app/config/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const SettingStack = StackNavigator({

export const AppStack = TabNavigator({
Home: {
screen: example,
screen: HomeScreen,
navigationOptions: {
tabBarLabel: () => {
return <Icon name="home" type='font-awesome' size={25} color={"white"} />;
Expand Down
8 changes: 6 additions & 2 deletions app/config/studyList.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ export const StudyList = [{
type : 'HL2',
study : '1'
},{
title : 'FLASH_CARD',
title : 'FLASH_CARD_HIRAGANA',
type : 'HL3',
study : '1'
},{
title : 'FLASH_CARD_KATAKANA',
type : 'HL3',
study : '1'
},{
Expand Down Expand Up @@ -177,7 +181,7 @@ export const StudyList = [{
title : 'GOI_LIST',
type : 'GL1',
study : '4'
},,{
},{
title : 'FLASH_CARD',
type : 'GL3',
study : '4'
Expand Down
13 changes: 10 additions & 3 deletions app/screens/Learn/LearnModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,16 @@ class LearnHiraganaModule extends Component {
<HL2Screen />
);
}else if(this.state.type == 'HL3' || this.state.type == 'GL3' || this.state.type == 'KL3' || this.state.type == 'BL3' ){
return (
<LearningModule title={ this.state.studyType }/>
);
if(this.state.title == "FLASH_CARD_HIRAGANA" || this.state.title == 'FLASH_CARD_HIRAGANA'){
return (
<LearningModule title={ this.state.title }/>
);
}else{
return (
<LearningModule title={ this.state.studyType }/>
);

}
}else if(this.state.type == 'HL4'){
return (
<Text>HL4</Text>
Expand Down

0 comments on commit 5cc84cf

Please sign in to comment.