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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
30 deletions
+24
-30
AppNavigation.js
+5
-3
screens/Private/SmartMeterScreen/SmartMeterScreen.js
+19
-27
No files found.
AppNavigation.js
View file @
9c8958a2
...
...
@@ -188,7 +188,7 @@ const BottomNavigationTabs = props => {
elevation
:
10
,
}}
>
<
View
style
=
{{
paddingHorizontal
:
25
}}
>
<
View
style
=
{{
paddingHorizontal
:
25
,
height
:
95
}}
>
<
BottomNavigation
{...
props
}
style
=
{{
marginTop
:
1
}}
...
...
@@ -213,9 +213,11 @@ const BottomNavigationTabs = props => {
return
(
<
Icon
style
=
{{
marginTop
:
5
,
marginTop
:
10
,
textAlign
:
'center'
,
fontSize
:
20
,
fontSize
:
25
,
width
:
30
,
height
:
30
,
color
,
}}
type
=
{
tab
.
icon
.
type
||
'Ionicons'
}
...
...
screens/Private/SmartMeterScreen/SmartMeterScreen.js
View file @
9c8958a2
...
...
@@ -85,25 +85,6 @@ class SmartMeterScreen extends PureComponent {
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
refreshControl
=
{
<
RefreshControl
...
...
@@ -129,7 +110,19 @@ class SmartMeterScreen extends PureComponent {
<
/View
>
)}
ListHeaderComponent
=
{()
=>
(
<>
<
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
)}
/
>
...
...
@@ -147,24 +140,23 @@ const styles = StyleSheet.create({
flex
:
1
,
display
:
'flex'
,
backgroundColor
:
'transparent'
,
height
:
3
0
,
padding
Vertical
:
0
,
height
:
4
0
,
padding
:
0
,
borderTopWidth
:
0
,
borderBottomWidth
:
0
,
marginTop
:
10
,
marginBottom
:
15
,
marginHorizontal
:
0
,
},
searchBarInputContainer
:
{
borderRadius
:
100
,
borderWidth
:
1
,
borderBottomWidth
:
1
,
backgroundColor
:
'transparent'
,
minHeight
:
10
,
height
:
3
0
,
height
:
4
0
,
borderColor
:
'#c7cad1'
,
},
searchBarInput
:
{
fontFamily
:
'Avenir-Roman'
,
fontSize
:
12
,
color
:
color
.
grey
,
},
});
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