Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
205
Merge Requests
12
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
ba8d84df
Commit
ba8d84df
authored
1 hour ago
by
Martin Santangelo
Browse files
Options
Download
(fix) notification dot icon align and design
parent
75a85938
new-navigation-designs
1 merge request
!504
WIP: New navigation Screens
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
src/notifications/NotificationsTabIcon.js
View file @
ba8d84df
...
...
@@ -6,27 +6,33 @@ import {
Platform
,
}
from
'
react-native
'
;
import
colors
from
'
../styles/Colors
'
;
import
{
observer
,
inject
}
from
'
mobx-react/native
'
;
import
FAIcon
from
'
react-native-vector-icons/FontAwesome
'
;
import
CIcon
from
'
react-native-vector-icons/MaterialCommunityIcons
'
;
import
{
CommonStyle
}
from
'
../styles/Common
'
;
import
ThemedStyles
from
'
../styles/ThemedStyles
'
;
export
default
@
inject
(
'
notifications
'
)
@
observer
export
default
class
NotificationIcon
extends
Component
{
class
NotificationIcon
extends
Component
{
/**
* Render
*/
render
()
{
ThemedStyles
.
getColor
(
'
link
'
)
const
tintColor
=
this
.
props
.
tintColor
;
const
size
=
this
.
props
.
size
||
24
;
return
(
<
View
style
=
{
styles
.
container
}
>
<
CIcon
name
=
"
bell
"
size
=
{
size
}
color
=
{
tintColor
}
/
>
{
this
.
props
.
notifications
.
unread
?
<
FAIcon
name
=
"
circle
"
size
=
{
10
}
color
=
'
#E02020
'
style
=
{
styles
.
unread
}
/> : null
}
{
this
.
props
.
notifications
.
unread
?
(
<>
<
FAIcon
name
=
"
circle
"
size
=
{
15
}
color
=
{
ThemedStyles
.
getColor
(
'
secondary_background
'
)}
style
=
{
styles
.
unreadBackground
}
/
>
<
FAIcon
name
=
"
circle
"
size
=
{
11
}
color
=
'
#E02020
'
style
=
{
styles
.
unread
}
/
>
<
/
>
)
:
null
}
<
/View
>
);
}
...
...
@@ -38,11 +44,18 @@ const styles = StyleSheet.create({
alignItems
:
'
center
'
,
justifyContent
:
'
center
'
,
},
unread
:
{
unread
Background
:
{
zIndex
:
9999
,
opacity
:
1
,
position
:
'
absolute
'
,
top
:
0
,
top
:
16
,
left
:
15
},
unread
:
{
zIndex
:
9999
,
opacity
:
1
,
position
:
'
absolute
'
,
top
:
18
,
left
:
17
},
});
This diff is collapsed.
Please
register
or
sign in
to comment