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
4b9177f2
Commit
4b9177f2
authored
Apr 12, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit login
parent
fde92410
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
31 deletions
+41
-31
Authen.js
src/Screens/Authen/Authen.js
+36
-28
Registor.js
src/Screens/Authen/Registor.js
+1
-2
DetailNew.js
src/Screens/NewFeed/DetailNew.js
+1
-0
Tab2.js
src/Screens/NewFeed/Tab2/Tab2.js
+1
-0
Tradding.js
src/Screens/NewFeed/Tradding/Tradding.js
+1
-0
images.js
src/assets/images.js
+1
-1
bgLogin.png
src/assets/images/bgLogin.png
+0
-0
login_bg.png
src/assets/images/login_bg.png
+0
-0
No files found.
src/Screens/Authen/Authen.js
View file @
4b9177f2
...
...
@@ -8,13 +8,18 @@ import {
StatusBar
,
TouchableWithoutFeedback
,
Keyboard
,
ImageBackground
,
Dimensions
,
}
from
'react-native'
;
import
HeaderAuthen
from
'../../components/Header/HeaderAuthen'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
{
getFontXD
}
from
'../../Config/Functions'
;
import
{
getFontXD
,
HEIGHTXD
}
from
'../../Config/Functions'
;
import
Login
from
'./Login'
;
import
Registor
from
'./Registor'
;
import
{
ScrollView
}
from
'react-native-gesture-handler'
;
import
R
from
'../../assets/R'
;
const
{
width
,
height
}
=
Dimensions
.
get
(
'window'
);
const
Tab
=
createMaterialTopTabNavigator
();
const
Authen
=
(
props
)
=>
{
...
...
@@ -25,33 +30,36 @@ const Authen = (props) => {
keyboardVerticalOffset
=
{
-
50
}
>
<
TouchableWithoutFeedback
onPress
=
{
Keyboard
.
dismiss
}
>
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderAuthen
/>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'white'
}}
>
<
Tab
.
Navigator
initialRouteName
=
"Login"
tabBarOptions
=
{{
activeTintColor
:
'#0045C8'
,
labelStyle
:
{
fontSize
:
getFontXD
(
42
),
fontWeight
:
'700'
},
style
:
{
justifyContent
:
'center'
,
marginHorizontal
:
40
,
elevation
:
0
,
},
}}
>
<
Tab
.
Screen
name
=
"LOGIN"
component
=
{
Login
}
options
=
{{
tabBarLabel
:
'Đăng nhập'
}}
/
>
<
Tab
.
Screen
name
=
"REGISTOR"
component
=
{
Registor
}
options
=
{{
tabBarLabel
:
'Đăng ký'
}}
/
>
<
/Tab.Navigator
>
<
/View
>
<
/View
>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
ImageBackground
resizeMode
=
{
'stretch'
}
style
=
{{
width
:
width
,
height
}}
source
=
{
R
.
images
.
bgLogin
}
>
<
Tab
.
Navigator
initialRouteName
=
"Login"
tabBarOptions
=
{{
activeTintColor
:
'#0045C8'
,
labelStyle
:
{
fontSize
:
getFontXD
(
42
),
fontWeight
:
'700'
},
style
:
{
justifyContent
:
'center'
,
marginHorizontal
:
40
,
elevation
:
0
,
marginTop
:
HEIGHTXD
(
700
),
},
}}
>
<
Tab
.
Screen
name
=
"LOGIN"
component
=
{
Login
}
options
=
{{
tabBarLabel
:
'Đăng nhập'
}}
/
>
<
Tab
.
Screen
name
=
"REGISTOR"
component
=
{
Registor
}
options
=
{{
tabBarLabel
:
'Đăng ký'
}}
/
>
<
/Tab.Navigator
>
<
/ImageBackground
>
<
/ScrollView
>
<
/TouchableWithoutFeedback
>
<
/KeyboardAvoidingView
>
...
...
src/Screens/Authen/Registor.js
View file @
4b9177f2
...
...
@@ -103,8 +103,7 @@ const Registor = (props) => {
<
View
style
=
{{
marginVertical
:
20
,
marginTop
:
30
,
alignItems
:
'center'
,
}}
>
<
TouchableOpacity
onPress
=
{
registorClick
}
style
=
{
styles
.
wrapLogin
}
>
...
...
src/Screens/NewFeed/DetailNew.js
View file @
4b9177f2
...
...
@@ -11,6 +11,7 @@ const DepositView = (props) => {
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'Chi tiết'
}
/
>
<
WebView
androidHardwareAccelerationDisabled
=
{
true
}
domStorageEnabled
=
{
false
}
source
=
{{
uri
:
root
+
'api/v1/posts/detail/web-view?id='
+
props
.
route
.
params
.
id
,
...
...
src/Screens/NewFeed/Tab2/Tab2.js
View file @
4b9177f2
...
...
@@ -13,6 +13,7 @@ const NewFeed = (props) => {
}}
>
<
WebView
androidHardwareAccelerationDisabled
=
{
true
}
domStorageEnabled
=
{
false
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
}}
source
=
{{
uri
:
'http://api.dcvinvest.com/webview/tradingview/price'
,
...
...
src/Screens/NewFeed/Tradding/Tradding.js
View file @
4b9177f2
...
...
@@ -8,6 +8,7 @@ const Trading = (props) => {
<
WebView
androidHardwareAccelerationDisabled
=
{
true
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
}}
domStorageEnabled
=
{
false
}
source
=
{{
uri
:
'http://api.dcvinvest.com/webview/tradingview/chart?height='
+
...
...
src/assets/images.js
View file @
4b9177f2
...
...
@@ -62,7 +62,7 @@ const images = {
iconBtnGreen
:
require
(
'./images/iconBtnGreen.png'
),
iconCheck
:
require
(
'./images/iconCheck.png'
),
bgmedia
:
require
(
'./images/bgmedia.jpeg'
),
login_bg
:
require
(
'./images/login_bg
.png'
),
bgLogin
:
require
(
'./images/bgLogin
.png'
),
};
export
default
images
;
src/assets/images/bgLogin.png
0 → 100644
View file @
4b9177f2
87.2 KB
src/assets/images/login_bg.png
deleted
100644 → 0
View file @
fde92410
386 KB
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