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
9c8958a2
Commit
9c8958a2
authored
Sep 24, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update bottomTab size, update home screen style
parent
e82b63e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
31 deletions
+25
-31
AppNavigation.js
+5
-3
screens/Private/SmartMeterScreen/SmartMeterScreen.js
+20
-28
No files found.
AppNavigation.js
View file @
9c8958a2
...
@@ -188,7 +188,7 @@ const BottomNavigationTabs = props => {
...
@@ -188,7 +188,7 @@ const BottomNavigationTabs = props => {
elevation
:
10
,
elevation
:
10
,
}}
}}
>
>
<
View
style
=
{{
paddingHorizontal
:
25
}}
>
<
View
style
=
{{
paddingHorizontal
:
25
,
height
:
95
}}
>
<
BottomNavigation
<
BottomNavigation
{...
props
}
{...
props
}
style
=
{{
marginTop
:
1
}}
style
=
{{
marginTop
:
1
}}
...
@@ -213,9 +213,11 @@ const BottomNavigationTabs = props => {
...
@@ -213,9 +213,11 @@ const BottomNavigationTabs = props => {
return
(
return
(
<
Icon
<
Icon
style
=
{{
style
=
{{
marginTop
:
5
,
marginTop
:
10
,
textAlign
:
'center'
,
textAlign
:
'center'
,
fontSize
:
20
,
fontSize
:
25
,
width
:
30
,
height
:
30
,
color
,
color
,
}}
}}
type
=
{
tab
.
icon
.
type
||
'Ionicons'
}
type
=
{
tab
.
icon
.
type
||
'Ionicons'
}
...
...
screens/Private/SmartMeterScreen/SmartMeterScreen.js
View file @
9c8958a2
...
@@ -85,25 +85,6 @@ class SmartMeterScreen extends PureComponent {
...
@@ -85,25 +85,6 @@ class SmartMeterScreen extends PureComponent {
return
!
error
?
(
return
!
error
?
(
<>
<>
<
View
style
=
{{
padding
:
15
,
flexDirection
:
'row'
,
alignItems
:
'center'
,
backgroundColor
:
color
.
defaultBg
,
}}
>
<
SearchBar
containerStyle
=
{
styles
.
searchBarContainer
}
inputContainerStyle
=
{
styles
.
searchBarInputContainer
}
inputStyle
=
{
styles
.
searchBarInput
}
round
lightTheme
placeholder
=
"Search..."
onChangeText
=
{
text
=>
this
.
updateSearch
(
text
)}
value
=
{
this
.
state
.
search
}
/
>
<
/View
>
<
FlatList
<
FlatList
refreshControl
=
{
refreshControl
=
{
<
RefreshControl
<
RefreshControl
...
@@ -129,7 +110,19 @@ class SmartMeterScreen extends PureComponent {
...
@@ -129,7 +110,19 @@ class SmartMeterScreen extends PureComponent {
<
/View
>
<
/View
>
)}
)}
ListHeaderComponent
=
{()
=>
(
ListHeaderComponent
=
{()
=>
(
<
Text
style
=
{[
theme
.
smallTitle
,
theme
.
textDark
,
{
marginBottom
:
10
}]}
>
Smart
Device
<
/Text
>
<>
<
Text
style
=
{[
theme
.
smallTitle
,
theme
.
textDark
,
{
marginBottom
:
10
}]}
>
Smart
Device
<
/Text
>
<
SearchBar
containerStyle
=
{
styles
.
searchBarContainer
}
inputContainerStyle
=
{
styles
.
searchBarInputContainer
}
inputStyle
=
{
theme
.
normalText
}
lightTheme
placeholder
=
"Search..."
onChangeText
=
{
text
=>
this
.
updateSearch
(
text
)}
value
=
{
this
.
state
.
search
}
/
>
<
/
>
)}
)}
renderItem
=
{(
item
,
index
)
=>
this
.
renderItem
(
item
)}
renderItem
=
{(
item
,
index
)
=>
this
.
renderItem
(
item
)}
/
>
/
>
...
@@ -147,24 +140,23 @@ const styles = StyleSheet.create({
...
@@ -147,24 +140,23 @@ const styles = StyleSheet.create({
flex
:
1
,
flex
:
1
,
display
:
'flex'
,
display
:
'flex'
,
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
height
:
3
0
,
height
:
4
0
,
padding
Vertical
:
0
,
padding
:
0
,
borderTopWidth
:
0
,
borderTopWidth
:
0
,
borderBottomWidth
:
0
,
borderBottomWidth
:
0
,
marginTop
:
10
,
marginBottom
:
15
,
marginHorizontal
:
0
,
},
},
searchBarInputContainer
:
{
searchBarInputContainer
:
{
borderRadius
:
100
,
borderWidth
:
1
,
borderWidth
:
1
,
borderBottomWidth
:
1
,
borderBottomWidth
:
1
,
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
minHeight
:
10
,
minHeight
:
10
,
height
:
3
0
,
height
:
4
0
,
borderColor
:
'#c7cad1'
,
borderColor
:
'#c7cad1'
,
},
},
searchBarInput
:
{
fontFamily
:
'Avenir-Roman'
,
fontSize
:
12
,
color
:
color
.
grey
,
},
});
});
const
mapStateToProps
=
state
=>
({
const
mapStateToProps
=
state
=>
({
...
...
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