dont render if reduced motion
This commit is contained in:
@@ -153,6 +153,7 @@ export function CountWheel({
|
|||||||
{formattedCount}
|
{formattedCount}
|
||||||
</Text>
|
</Text>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
{shouldAnimate ? (
|
||||||
<Animated.View
|
<Animated.View
|
||||||
entering={exitingAnimation}
|
entering={exitingAnimation}
|
||||||
// Add 2 to the key so there are never duplicates
|
// Add 2 to the key so there are never duplicates
|
||||||
@@ -170,6 +171,7 @@ export function CountWheel({
|
|||||||
{formattedPrevCount}
|
{formattedPrevCount}
|
||||||
</Text>
|
</Text>
|
||||||
</Animated.View>
|
</Animated.View>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
) : null}
|
) : null}
|
||||||
</LayoutAnimationConfig>
|
</LayoutAnimationConfig>
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ export function CountWheel({
|
|||||||
{formattedCount}
|
{formattedCount}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
{shouldAnimate ? (
|
||||||
<View
|
<View
|
||||||
style={{position: 'absolute'}}
|
style={{position: 'absolute'}}
|
||||||
aria-disabled={true}
|
aria-disabled={true}
|
||||||
@@ -113,6 +114,7 @@ export function CountWheel({
|
|||||||
{formattedPrevCount}
|
{formattedPrevCount}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user