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
ff9c98ea
Commit
ff9c98ea
authored
Aug 15, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update timer style
parent
b9694aaa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
components/SlideUpModal.js
+2
-1
components/SwipeableRow.js
+8
-4
screens/Private/TimerScreen/TimerScreen.js
+0
-0
No files found.
components/SlideUpModal.js
View file @
ff9c98ea
...
...
@@ -8,11 +8,12 @@ export default class SlideUpModal extends React.Component {
};
componentDidMount
()
{
const
topValue
=
this
.
props
.
ending
*
height
;
Animated
.
timing
(
// Animate over time
this
.
state
.
slide
,
// The animated value to drive
{
toValue
:
height
*
0.3
,
// Animate to opacity: 1 (opaque)
toValue
:
topValue
,
// Animate to opacity: 1 (opaque)
duration
:
500
,
// Make it take a while
}
).
start
();
// Starts the animation
...
...
components/SwipeableRow.js
View file @
ff9c98ea
...
...
@@ -16,9 +16,11 @@ const Row = ({ data }) => {
<
RectButton
style
=
{
styles
.
rectButton
}
onPress
=
{()
=>
alert
(
'hello '
+
data
.
name
)}
>
<
View
style
=
{{
flexDirection
:
'row'
,
paddingVertical
:
5
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
Text
style
=
{[
theme
.
title
]}
>
<
Text
style
=
{[
theme
.
title
,
{
color
:
!
data
.
active
&&
color
.
grey
}
]}
>
{
format
(
data
.
time
,
'h:mm'
)}{
' '
}
<
Text
style
=
{[
theme
.
description
,
theme
.
textDark
]}
>
{
format
(
data
.
time
,
'A'
)}
<
/Text
>
<
Text
style
=
{[
theme
.
description
,
theme
.
textDark
,
{
color
:
!
data
.
active
&&
color
.
grey
}]}
>
{
format
(
data
.
time
,
'A'
)}
<
/Text
>
<
/Text
>
<
View
style
=
{
theme
.
rowContainer
}
>
{
data
.
repeatDays
.
map
((
item
,
index
)
=>
(
...
...
@@ -43,7 +45,9 @@ const Row = ({ data }) => {
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
1
}}
>
<
Text
style
=
{[
theme
.
title
,
{
fontWeight
:
'normal'
}]}
>
{
data
.
name
}
<
/Text
>
<
Text
style
=
{[
theme
.
title
,
{
fontWeight
:
'normal'
,
color
:
!
data
.
active
&&
color
.
grey
}]}
>
{
data
.
name
}
<
/Text
>
<
Text
style
=
{
theme
.
description
}
>
{
data
.
active
?
'Active'
:
'Inactive'
}
<
/Text
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
alignItems
:
'flex-end'
}}
>
...
...
@@ -185,7 +189,7 @@ const styles = StyleSheet.create({
backgroundColor
:
color
.
primary
,
color
:
color
.
white
,
justifyContent
:
'center'
,
borderRadius
:
9
,
borderRadius
:
100
,
},
cfDelOverlay
:
{
padding
:
20
,
...
...
screens/Private/TimerScreen/TimerScreen.js
View file @
ff9c98ea
This diff is collapsed.
Click to expand it.
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