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
6b85989a
Commit
6b85989a
authored
Aug 14, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2dc1e6fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
screens/Private/TimerScreen/TimerScreen.js
+20
-21
No files found.
screens/Private/TimerScreen/TimerScreen.js
View file @
6b85989a
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
StyleSheet
,
FlatList
,
ScrollView
,
TouchableHighlight
,
Modal
}
from
'react-native'
;
import
{
Switch
,
Button
,
Tab
,
Tabs
,
ScrollableTab
,
Icon
,
Fab
,
Text
,
Picker
}
from
'native-base'
;
import
{
Switch
,
Button
,
Tab
,
Tabs
,
ScrollableTab
,
Icon
,
Fab
,
Text
}
from
'native-base'
;
import
{
HeaderButtons
,
Item
as
HeaderItem
}
from
'react-navigation-header-buttons'
;
import
IoniconsHeaderButton
from
'../../../components/IoniconsHeaderButton'
;
import
{
color
,
theme
}
from
'../../../constants/Styles'
;
...
...
@@ -315,18 +315,7 @@ export default class TimerScreen extends Component {
visible
=
{
this
.
state
.
filterOpen
}
>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'rgba(0,0,0,0.5)'
}}
>
<
ScrollView
contentContainerStyle
=
{{
flex
:
0.7
,
top
:
height
*
0.3
,
paddingTop
:
20
,
paddingBottom
:
18
,
paddingHorizontal
:
25
,
backgroundColor
:
color
.
white
,
borderTopLeftRadius
:
10
,
borderTopRightRadius
:
10
,
}}
>
<
ScrollView
contentContainerStyle
=
{
styles
.
filterModal
}
>
<
View
style
=
{[
theme
.
rowContainer
,
...
...
@@ -396,13 +385,7 @@ export default class TimerScreen extends Component {
ItemSeparatorComponent
=
{()
=>
<
View
style
=
{
theme
.
mt1
}
/>
}
renderItem
=
{({
item
,
index
})
=>
(
<
CheckBox
containerStyle
=
{{
border
:
0
,
borderColor
:
'transparent'
,
backgroundColor
:
color
.
white
,
padding
:
0
,
margin
:
0
,
}}
containerStyle
=
{
styles
.
checkboxContainer
}
fontFamily
=
{
'Avenir-Roman'
}
textStyle
=
{{
fontWeight
:
'normal'
,
color
:
color
.
darkGrey
}}
title
=
{
'Sub breaker '
+
(
index
+
1
)}
...
...
@@ -410,7 +393,7 @@ export default class TimerScreen extends Component {
checkedIcon
=
{
<
Icon
name
=
"checkbox"
style
=
{{
color
:
color
.
primary
,
fontSize
:
26
}}
/
>
}
uncheckedIcon
=
{
<
Icon
name
=
"square-outline"
style
=
{{
color
:
'#9b9b9b'
}}
/>
}
uncheckedIcon
=
{
<
Icon
name
=
"square-outline"
style
=
{{
color
:
color
.
grey
}}
/>
}
onPress
=
{()
=>
this
.
setState
({
checked
:
!
this
.
state
.
checked
})}
/
>
)}
...
...
@@ -467,4 +450,20 @@ const styles = StyleSheet.create({
paddingVertical
:
10
,
justifyContent
:
'space-between'
,
},
filterModal
:
{
flex
:
0.7
,
top
:
height
*
0.3
,
paddingTop
:
20
,
paddingBottom
:
18
,
paddingHorizontal
:
25
,
backgroundColor
:
color
.
white
,
borderTopLeftRadius
:
10
,
borderTopRightRadius
:
10
,
},
checkboxContainer
:
{
borderColor
:
'transparent'
,
backgroundColor
:
color
.
white
,
padding
:
0
,
margin
:
0
,
},
});
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