This file contains hidden or 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
const animatedStyle = useAnimatedStyle(() => { | |
const input = scrollOffset.value / slideWidth; | |
const inputRange = [index - 1, index, index + 1]; | |
return { | |
transform: [ | |
{ | |
scale: interpolate( | |
input, | |
inputRange, |
This file contains hidden or 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
const animatedStyle = useAnimatedStyle(() => { | |
const input = scrollOffset.value / slideWidth; | |
const inputRange = [index - 1, index, index + 1]; | |
const animatedColor = interpolateColor(input, inputRange, [ | |
gray, | |
textColor, | |
gray, | |
]); | |
return { |
This file contains hidden or 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
import React, {useState, useEffect} from 'react'; | |
import { | |
SafeAreaView, | |
Image, | |
ScrollView, | |
StatusBar, | |
ActivityIndicator, | |
} from 'react-native'; | |
import {MotiView} from 'moti'; |
This file contains hidden or 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
import React, {useEffect, useState} from 'react'; | |
import { | |
View, | |
SafeAreaView, | |
Text, | |
StyleSheet, | |
ScrollView, | |
ActivityIndicator, | |
StatusBar, | |
} from 'react-native'; |
This file contains hidden or 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
import React, {useState, useEffect} from 'react'; | |
import { | |
View, | |
SafeAreaView, | |
Text, | |
StyleSheet, | |
ImageBackground, | |
StatusBar, | |
ActivityIndicator, | |
} from 'react-native'; |
This file contains hidden or 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
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="rgb(246, 79, 89)" | |
strokeWidth="5" | |
fill="rgba(255,255,255,0.2)" | |
strokeDasharray="10" | |
/> |
This file contains hidden or 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
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="rgb(246, 79, 89)" | |
strokeWidth="5" | |
fill="rgba(255,255,255,0.2)" | |
strokeDasharray="10 20" | |
/> |
This file contains hidden or 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
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="rgb(246, 79, 89)" | |
strokeWidth="5" | |
fill="rgba(255,255,255,0.2)" | |
strokeDasharray="10 20" | |
strokeDashoffset="10" | |
/> |
This file contains hidden or 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
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="rgb(246, 79, 89)" | |
strokeWidth="5" | |
fill="rgba(255,255,255,0.2)" | |
strokeDasharray={`${radius * PI * 2}`} | |
/> |
This file contains hidden or 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
<Circle | |
cx="50" | |
cy="50" | |
r="45" | |
stroke="rgb(246, 79, 89)" | |
strokeWidth="5" | |
fill="rgba(255,255,255,0.2)" | |
strokeDasharray={`${radius * PI * 2}`} | |
strokeDashoffset={`${radius * PI * 2}`} | |
/> |