-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(points): add valora heart imagery to points screen (#5267)
### Description As the title. ### Test plan https://github.com/valora-inc/wallet/assets/20150449/8b2cf3da-54fc-4cb2-abee-cf19cbe3b417 ### Related issues - Fixes RET-1071 ### Backwards compatibility Y ### Network scalability n/a --------- Co-authored-by: Joseph Bergeron <jophish126@gmail.com> Co-authored-by: Joe Bergeron <jbergero@alum.mit.edu>
- Loading branch information
1 parent
530a554
commit b8c82ca
Showing
6 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as React from 'react' | ||
import colors from 'src/styles/colors' | ||
import Svg, { Path } from 'svgs' | ||
|
||
interface Props { | ||
size?: number | ||
testID?: string | ||
} | ||
|
||
export default function LogoHeart({ size = 32, testID }: Props) { | ||
return ( | ||
<Svg width={size} height={size} viewBox="0 0 25 25" fill="none" testID={testID}> | ||
<Path | ||
d="M9.86842 22.3684C13.8653 22.3684 17.1053 19.1284 17.1053 15.1316C17.1053 11.1348 13.8653 7.89476 9.86842 7.89476C5.87158 7.89476 2.63158 11.1348 2.63158 15.1316C2.63158 19.1284 5.87158 22.3684 9.86842 22.3684ZM9.86842 25C4.41842 25 0 20.5816 0 15.1316C0 9.6816 4.41842 5.26318 9.86842 5.26318C15.3184 5.26318 19.7368 9.6816 19.7368 15.1316C19.7368 20.5816 15.3184 25 9.86842 25Z" | ||
fill={colors.goldBrand} | ||
/> | ||
<Path | ||
d="M15.1316 17.1053C19.1284 17.1053 22.3684 13.8653 22.3684 9.86842C22.3684 5.87158 19.1284 2.63158 15.1316 2.63158C11.1348 2.63158 7.89476 5.87158 7.89476 9.86842C7.89476 13.8653 11.1348 17.1053 15.1316 17.1053ZM15.1316 19.7368C9.6816 19.7368 5.26318 15.3184 5.26318 9.86842C5.26318 4.41842 9.6816 0 15.1316 0C20.5816 0 25 4.41842 25 9.86842C25 15.3184 20.5816 19.7368 15.1316 19.7368Z" | ||
fill={colors.primary} | ||
/> | ||
<Path | ||
d="M15.4577 19.7369C16.1419 18.9077 16.6324 17.9361 16.8932 16.8932C17.9361 16.6324 18.9077 16.1421 19.7369 15.4579C19.699 16.6658 19.439 17.8563 18.9695 18.9698C17.8561 19.439 16.6656 19.6992 15.4577 19.7369ZM8.10687 8.10687C7.06397 8.36766 6.09239 8.85792 5.26318 9.54213C5.30108 8.33424 5.56108 7.14371 6.03055 6.03029C7.14397 5.56108 8.3345 5.30082 9.54239 5.26318C8.85818 6.09239 8.36766 7.06397 8.10687 8.10687Z" | ||
fill={'#5EA33B'} | ||
/> | ||
</Svg> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React, { useEffect } from 'react' | ||
import Animated, { | ||
Easing, | ||
useAnimatedStyle, | ||
useSharedValue, | ||
withRepeat, | ||
withSequence, | ||
withTiming, | ||
} from 'react-native-reanimated' | ||
import LogoHeart from 'src/icons/LogoHeart' | ||
|
||
const BeatingHeartLoader = ({ size }: { size: number }) => { | ||
const scale = useSharedValue(1) | ||
|
||
const animatedStyle = useAnimatedStyle(() => { | ||
return { | ||
transform: [{ scale: scale.value }], | ||
} | ||
}) | ||
|
||
useEffect(() => { | ||
scale.value = withRepeat( | ||
withSequence( | ||
withTiming(1.1, { duration: 600, easing: Easing.ease }), | ||
withTiming(1, { duration: 200, easing: Easing.ease }) | ||
), | ||
-1, | ||
false | ||
) | ||
}, []) | ||
|
||
return ( | ||
<Animated.View style={animatedStyle}> | ||
<LogoHeart size={size} /> | ||
</Animated.View> | ||
) | ||
} | ||
|
||
export default BeatingHeartLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters