Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
0f249e58
Commit
0f249e58
authored
May 28, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix language
parent
31629030
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
build.gradle
android/app/build.gradle
+2
-2
MainApplication.java
...oid/app/src/main/java/com/dcv/invest/MainApplication.java
+1
-0
settings.gradle
android/settings.gradle
+2
-0
Podfile
ios/Podfile
+2
-0
Authen.js
src/Screens/Authen/Authen.js
+16
-3
No files found.
android/app/build.gradle
View file @
0f249e58
...
...
@@ -132,8 +132,8 @@ android {
applicationId
"com.dcv.invest"
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
9
versionName
"1.
3
"
versionCode
2
versionName
"1.
4
"
vectorDrawables
.
useSupportLibrary
=
true
}
splits
{
...
...
android/app/src/main/java/com/dcv/invest/MainApplication.java
View file @
0f249e58
...
...
@@ -4,6 +4,7 @@ import android.app.Application;
import
android.content.Context
;
import
com.facebook.react.PackageList
;
import
com.facebook.react.ReactApplication
;
import
com.learnium.RNDeviceInfo.RNDeviceInfo
;
import
com.reactnativecommunity.netinfo.NetInfoPackage
;
import
com.facebook.react.ReactInstanceManager
;
import
com.facebook.react.ReactNativeHost
;
...
...
android/settings.gradle
View file @
0f249e58
rootProject
.
name
=
'Invest'
include
':react-native-device-info'
project
(
':react-native-device-info'
).
projectDir
=
new
File
(
rootProject
.
projectDir
,
'../node_modules/react-native-device-info/android'
)
include
':@react-native-community_netinfo'
project
(
':@react-native-community_netinfo'
).
projectDir
=
new
File
(
rootProject
.
projectDir
,
'../node_modules/@react-native-community/netinfo/android'
)
include
':react-native-bootsplash'
...
...
ios/Podfile
View file @
0f249e58
...
...
@@ -89,6 +89,8 @@ target 'Invest' do
pod
'react-native-netinfo'
,
:path
=>
'../node_modules/@react-native-community/netinfo'
pod
'RNDeviceInfo'
,
:path
=>
'../node_modules/react-native-device-info'
target
'InvestTests'
do
inherit!
:complete
# Pods for testing
...
...
src/Screens/Authen/Authen.js
View file @
0f249e58
...
...
@@ -18,6 +18,7 @@ import Registor from './Registor';
import
{
ScrollView
}
from
'react-native-gesture-handler'
;
import
R
from
'../../assets/R'
;
import
I18n
from
'../../helper/i18/i18n'
;
import
{
connect
}
from
'react-redux'
;
const
{
width
,
height
}
=
Dimensions
.
get
(
'window'
);
...
...
@@ -51,12 +52,18 @@ const Authen = (props) => {
<
Tab
.
Screen
name
=
"LOGIN"
component
=
{
Login
}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'Login'
)}}
options
=
{{
tabBarLabel
:
props
.
language
.
language
==
'vi'
?
'Đăng nhập'
:
'Login'
,
}}
/
>
<
Tab
.
Screen
name
=
"REGISTOR"
component
=
{
Registor
}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'Register'
)}}
options
=
{{
tabBarLabel
:
props
.
language
.
language
==
'vi'
?
'Đăng ký'
:
'Register'
,
}}
/
>
<
/Tab.Navigator
>
<
/ImageBackground
>
...
...
@@ -66,4 +73,10 @@ const Authen = (props) => {
);
};
export
default
Authen
;
const
mapStateToProps
=
(
state
)
=>
{
return
{
language
:
state
.
languageReducer
,
};
};
export
default
connect
(
mapStateToProps
,
{})(
Authen
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment