Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
185
Merge Requests
16
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
1a47beac
Commit
1a47beac
authored
1 day ago
by
Martin Santangelo
Browse files
Options
Download
(chore) fix tab spaces
parent
8dbd9ae0
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
src/common/components/Pulse.js
View file @
1a47beac
...
...
@@ -6,7 +6,7 @@ import { bInterpolate, loop } from "react-native-redash";
const
{
Value
,
useCode
,
set
}
=
Animated
;
export
default
function
(
props
)
{
const
animation
=
new
Value
(
0
);
const
animation
=
new
Value
(
0
);
useCode
(
set
(
animation
,
...
...
@@ -19,21 +19,21 @@ export default function(props) {
[
animation
],
);
const
scale
=
bInterpolate
(
animation
,
1
,
1.3
);
const
opacity
=
bInterpolate
(
animation
,
1
,
0
);
const
pulseMaxSize
=
Math
.
round
(
1.3
*
props
.
size
);
const
opacity
=
bInterpolate
(
animation
,
1
,
0
);
const
pulseMaxSize
=
Math
.
round
(
1.3
*
props
.
size
);
return
(
<
View
style
=
{[
styles
.
circleWrapper
,
{
width
:
pulseMaxSize
,
height
:
pulseMaxSize
,
marginLeft
:
-
pulseMaxSize
/
2
,
marginTop
:
-
pulseMaxSize
/
2
,
}
]}
>
width
:
pulseMaxSize
,
height
:
pulseMaxSize
,
marginLeft
:
-
pulseMaxSize
/
2
,
marginTop
:
-
pulseMaxSize
/
2
,
}
]}
>
<
Animated
.
View
style
=
{{
transform
:
[{
scale
}],
...
...
@@ -43,7 +43,7 @@ export default function(props) {
height
:
props
.
size
,
opacity
,
}}
/
>
/
>
<
/View
>
);
}
...
...
@@ -102,14 +102,14 @@ export default function(props) {
const
styles
=
StyleSheet
.
create
({
circleWrapper
:
{
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
position
:
'
absolute
'
,
// left: width/8,
// top: height/2,
},
circle
:
{
borderWidth
:
4
*
StyleSheet
.
hairlineWidth
,
},
circleWrapper
:
{
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
,
position
:
'
absolute
'
,
// left: width/8,
// top: height/2,
},
circle
:
{
borderWidth
:
4
*
StyleSheet
.
hairlineWidth
,
},
});
\ No newline at end of file
This diff is collapsed.
Please
register
or
sign in
to comment