Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
safetcut-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
safetcut-app
Commits
66ff08f7
Commit
66ff08f7
authored
Jul 05, 2019
by
OuiAtichat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to dev
parent
ab39463e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
src/screens/private/HomePage.js
+12
-11
src/screens/public/sendEmail.js
+1
-0
No files found.
src/screens/private/HomePage.js
View file @
66ff08f7
...
@@ -9,9 +9,11 @@ const LeftComponent = () => <Icon name="menu" style={{ color: 'white', fontSize:
...
@@ -9,9 +9,11 @@ const LeftComponent = () => <Icon name="menu" style={{ color: 'white', fontSize:
const
RightComponent
=
()
=>
<
Icon
name
=
"notifications"
style
=
{{
color
:
'white'
,
fontSize
:
24
}}
/>
;
const
RightComponent
=
()
=>
<
Icon
name
=
"notifications"
style
=
{{
color
:
'white'
,
fontSize
:
24
}}
/>
;
const
BottomTabs
=
[
const
BottomTabs
=
[
{
icon
:
'home'
,
label
:
'Hello1'
,
content
:
<
PageOne
/>
},
{
icon
:
{
name
:
'home'
},
label
:
'Smart Meter'
,
content
:
<
PageOne
/>
},
{
icon
:
'navigate'
,
label
:
'Hello2'
,
content
:
<
PageTwo
/>
},
{
icon
:
{
name
:
'md-time'
},
label
:
'Time'
,
content
:
<
PageTwo
/>
},
{
icon
:
'navigate'
,
label
:
'Hello3'
},
{
icon
:
{
type
:
'SimpleLineIcons'
,
name
:
'chart'
},
label
:
'History'
},
{
icon
:
{
name
:
'ios-share-alt'
},
label
:
'Share'
},
{
icon
:
{
type
:
'SimpleLineIcons'
,
name
:
'settings'
},
label
:
'Setting'
},
];
];
class
HomePage
extends
Component
{
class
HomePage
extends
Component
{
...
@@ -22,13 +24,13 @@ class HomePage extends Component {
...
@@ -22,13 +24,13 @@ class HomePage extends Component {
renderButtonTabs
=
()
=>
{
renderButtonTabs
=
()
=>
{
return
(
return
(
<
Tabs
<
Tabs
tabContainerStyle
=
{{
backgroundColor
:
'#fbfbfb'
}}
tabContainerStyle
=
{{
backgroundColor
:
'#fbfbfb'
,
paddingHorizontal
:
20
}}
tabBarPosition
=
"overlayBottom"
tabBarPosition
=
"overlayBottom"
tabBarUnderlineStyle
=
{{
tabBarUnderlineStyle
=
{{
backgroundColor
:
'
red
'
,
backgroundColor
:
'
#f44c4c
'
,
top
:
0
,
top
:
0
,
width
:
width
/
6
,
width
:
width
/
10
,
marginLeft
:
width
/
12
,
marginLeft
:
width
/
20
+
20
,
}}
}}
onChangeTab
=
{({
i
})
=>
{
onChangeTab
=
{({
i
})
=>
{
this
.
setState
({
activeIndex
:
i
});
this
.
setState
({
activeIndex
:
i
});
...
@@ -50,9 +52,10 @@ class HomePage extends Component {
...
@@ -50,9 +52,10 @@ class HomePage extends Component {
<
Icon
<
Icon
style
=
{{
style
=
{{
fontSize
:
20
,
fontSize
:
20
,
color
:
this
.
state
.
activeIndex
===
index
?
'
red
'
:
'#b9babc'
,
color
:
this
.
state
.
activeIndex
===
index
?
'
#f44c4c
'
:
'#b9babc'
,
}}
}}
name
=
{
tab
.
icon
}
type
=
{
tab
.
icon
.
type
||
'Ionicons'
}
name
=
{
tab
.
icon
.
name
}
/
>
/
>
<
Text
<
Text
style
=
{{
style
=
{{
...
@@ -72,8 +75,6 @@ class HomePage extends Component {
...
@@ -72,8 +75,6 @@ class HomePage extends Component {
);
);
};
};
render
()
{
render
()
{
// console.log(this.props);
return
(
return
(
<
Container
>
<
Container
>
<
Header
<
Header
...
...
src/screens/public/sendEmail.js
View file @
66ff08f7
...
@@ -14,6 +14,7 @@ const styles = StyleSheet.create({
...
@@ -14,6 +14,7 @@ const styles = StyleSheet.create({
color
:
'#4a4a4a'
,
color
:
'#4a4a4a'
,
},
},
});
});
export
default
class
sendEmail
extends
Component
{
export
default
class
sendEmail
extends
Component
{
render
()
{
render
()
{
return
(
return
(
...
...
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