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
5f7757cd
Commit
5f7757cd
authored
3 years ago
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit notification
parent
06b2c5be
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
18 deletions
+23
-18
build.gradle
android/app/build.gradle
+2
-2
Functions.js
src/Config/Functions.js
+2
-1
Header.js
src/components/Header/Header.js
+1
-0
HeaderBack.js
src/components/Header/HeaderBack.js
+1
-0
HeaderDrawer.js
src/components/Header/HeaderDrawer.js
+12
-12
HeaderHome.js
src/components/Header/HeaderHome.js
+1
-0
HeaderSB.js
src/components/Header/HeaderSB.js
+1
-0
HeaderSearch.js
src/components/Header/HeaderSearch.js
+1
-0
FirebaseNotification.js
src/helper/FirebaseNotification.js
+2
-3
No files found.
android/app/build.gradle
View file @
5f7757cd
...
...
@@ -132,8 +132,8 @@ android {
applicationId
"com.dcv.invest"
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
6
versionName
"2.
0
"
versionCode
1
8
versionName
"2.
2
"
vectorDrawables
.
useSupportLibrary
=
true
}
splits
{
...
...
This diff is collapsed.
Click to expand it.
src/Config/Functions.js
View file @
5f7757cd
...
...
@@ -34,7 +34,7 @@ export const decryptRSAString = (val) => {
};
export
const
logout
=
(
navigation
)
=>
{
AsyncStorage
.
multiRemove
([
KEY
.
ACCOUNT
,
KEY
.
FIREBASE
,
KEY
.
TOKEN
])
AsyncStorage
.
multiRemove
([
KEY
.
ACCOUNT
,
KEY
.
FIREBASE
,
KEY
.
TOKEN
])
;
navigation
.
reset
({
index
:
1
,
routes
:
[{
name
:
AUTHEN
}],
...
...
@@ -65,6 +65,7 @@ export const convertScreen = (name) => {
case
'CUSTOMER_NEWS'
:
return
DETAILNEW
;
case
'CUSTOMER_NOTIFICATION'
:
case
'CUSTOMER_VERIFIED'
:
return
TABNAVIGATOR
;
default
:
return
DETAILNEW
;
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/Header.js
View file @
5f7757cd
...
...
@@ -50,6 +50,7 @@ const HeaderHome = (props) => {
start
=
{{
x
:
0
,
y
:
0
}}
end
=
{{
x
:
0
,
y
:
1
}}
colors
=
{[
'#0062E1'
,
'#22AEFB'
]}
>
<
SnackBar
/>
<
StatusBar
barStyle
=
"light-content"
translucent
=
{
true
}
/
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{{
flex
:
1
}}
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/HeaderBack.js
View file @
5f7757cd
...
...
@@ -29,6 +29,7 @@ const HeaderHome = (props) => {
imageStyle
=
{{
resizeMode
:
'stretch'
}}
style
=
{[
styles
.
img
,
isWhite
?
{
backgroundColor
:
'white'
}
:
{}]}
source
=
{
R
.
images
.
bgHeader
}
>
<
SnackBar
/>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
View
style
=
{
styles
.
headerContainer
}
>
<
TouchableOpacity
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/HeaderDrawer.js
View file @
5f7757cd
...
...
@@ -22,7 +22,6 @@ import SnackBar from '../SnackBar';
import
AppText
from
'../AppText'
;
import
Icon
from
'react-native-vector-icons/Ionicons'
;
const
HeaderDrawer
=
(
props
)
=>
{
const
{
title
,
isWhite
}
=
props
;
const
[
isModalVisible
,
setModalVisible
]
=
useState
(
false
);
...
...
@@ -36,23 +35,24 @@ const HeaderDrawer = (props) => {
imageStyle
=
{{
resizeMode
:
'stretch'
}}
style
=
{[
styles
.
img
,
isWhite
?
{
backgroundColor
:
'white'
}
:
{}]}
source
=
{
R
.
images
.
bgHeader
}
>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
SnackBar
/>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
View
style
=
{
styles
.
headerContainer
}
>
<
TouchableOpacity
style
=
{{
width
:
35
,
height
:
30
}}
onPress
=
{
toggleModal
}
>
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
props
.
isShowSearch
?
<
TouchableOpacity
style
=
{{
width
:
35
,
height
:
35
}}
onPress
=
{
props
.
onSearchPress
}
>
<
Icon
name
=
{
'search-sharp'
}
size
=
{
25
}
color
=
{
R
.
colors
.
white
}
/
>
{
props
.
isShowSearch
?
(
<
TouchableOpacity
style
=
{{
width
:
35
,
height
:
35
}}
onPress
=
{
props
.
onSearchPress
}
>
<
Icon
name
=
{
'search-sharp'
}
size
=
{
25
}
color
=
{
R
.
colors
.
white
}
/
>
<
/TouchableOpacity
>
:
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/>
}
)
:
(
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
)}
<
/View
>
<
Modal
animationIn
=
{
'fadeInLeft'
}
...
...
@@ -66,7 +66,7 @@ const HeaderDrawer = (props) => {
Platform
.
OS
==
'ios'
?
{
paddingVertical
:
15
}
:
{},
]}
>
<
View
style
=
{
styles
.
container
}
>
<
Drawer
toggleModal
=
{
toggleModal
}
/
>
<
Drawer
toggleModal
=
{
toggleModal
}
/
>
<
/View
>
<
TouchableWithoutFeedback
onPress
=
{
toggleModal
}
>
<
View
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/HeaderHome.js
View file @
5f7757cd
...
...
@@ -240,6 +240,7 @@ const HeaderHome = (props) => {
return
(
<
View
style
=
{
styles
.
container
}
>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
SnackBar
/>
<
View
style
=
{{
justifyContent
:
'center'
,
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/HeaderSB.js
View file @
5f7757cd
...
...
@@ -40,6 +40,7 @@ const HeaderSearch = (props) => {
imageStyle
=
{{
resizeMode
:
'stretch'
}}
style
=
{[
styles
.
img
,
isWhite
?
{
backgroundColor
:
'white'
}
:
{}]}
source
=
{
R
.
images
.
bgHeader
}
>
<
SnackBar
/>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
View
style
=
{
styles
.
headerContainer
}
>
<
TouchableOpacity
...
...
This diff is collapsed.
Click to expand it.
src/components/Header/HeaderSearch.js
View file @
5f7757cd
...
...
@@ -43,6 +43,7 @@ const HeaderSearch = (props) => {
imageStyle
=
{{
resizeMode
:
'stretch'
}}
style
=
{[
styles
.
img
,
isWhite
?
{
backgroundColor
:
'white'
}
:
{}]}
source
=
{
R
.
images
.
bgHeader
}
>
<
SnackBar
/>
<
StatusBar
backgroundColor
=
"transparent"
translucent
=
{
true
}
/
>
<
View
style
=
{
styles
.
headerContainer
}
>
<
TouchableOpacity
onPress
=
{
toggleModal
}
>
...
...
This diff is collapsed.
Click to expand it.
src/helper/FirebaseNotification.js
View file @
5f7757cd
...
...
@@ -38,15 +38,14 @@ const FirebaseNotification = (props) => {
const
unsubscribe
=
messaging
().
onMessage
(
async
(
remoteMessage
)
=>
{
console
.
log
(
'A new FCM message arrived!'
,
remoteMessage
.
data
);
const
{
action_type
,
body
,
title
,
record_id
}
=
remoteMessage
.
data
;
if
(
action_type
!=
'CUSTOMER_NEWS'
)
refetchDataUser
();
props
.
showNotificaton
({
title
,
content
:
body
,
screen
:
convertScreen
(
action_type
),
id_record
:
record_id
,
});
if
(
action_type
!=
'CUSTOMER_NEWS'
)
refetchDataUser
();
});
// (async () => await messaging().registerDeviceForRemoteMessages())();
...
...
This diff is collapsed.
Click to expand it.
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