Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/src/examples/AnimatedTabBarExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const styles = StyleSheet.create({
},
circleIcon: {
position: 'absolute',
width: width,
width: tabWidth,
top: -8,
left: width / 2,
left: tabWidth / 2,
height: 64,
justifyContent: 'center',
alignItems: 'center',
Expand Down
9 changes: 6 additions & 3 deletions app/src/examples/ExtrapolationExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function ExtrapolationExample(): React.ReactElement {
return (
<>
<PanGestureHandler onGestureEvent={gestureHandler}>
<Animated.View style={[styles.circle, stylez]} />
<Animated.View style={[styles.circle, styles.topCircle, stylez]} />
</PanGestureHandler>
<Animated.View style={[styles.circle, button1Style]} />
<Animated.View style={[styles.circle, button2Style]} />
Expand All @@ -96,14 +96,17 @@ export default function ExtrapolationExample(): React.ReactElement {
}

const styles = StyleSheet.create({
topCircle: {
zIndex: 1,
backgroundColor: '#001a72',
},
circle: {
width: 50,
height: 50,
position: 'absolute',
top: 400,
alignSelf: 'center',
borderRadius: 25,
zIndex: 1,
backgroundColor: '#001a72',
backgroundColor: 'red',
},
});
5 changes: 2 additions & 3 deletions app/src/examples/MatrixTransform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export default function MatrixTransform() {
});

const handlePress = React.useCallback(() => {
currentTransformIndex.current++;
currentTransformIndex.current %= TRANSFORM_MATRICES.length;
matrix.value = withSpring(
TRANSFORM_MATRICES[currentTransformIndex.current],
springConfig
Expand All @@ -41,9 +43,6 @@ export default function MatrixTransform() {
[...TRANSFORM_MATRICES[currentTransformIndex.current], 0],
springConfig
);

currentTransformIndex.current += 1;
currentTransformIndex.current %= TRANSFORM_MATRICES.length;
}, [matrix, matrix2, currentTransformIndex]);

return (
Expand Down
2 changes: 1 addition & 1 deletion app/src/examples/SharedElementTransitions/RestoreState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function RestoreStateExample() {
return (
<Stack.Navigator
screenOptions={{
animation: 'none',
animation: 'fade',
}}>
<Stack.Screen
name="Screen1"
Expand Down

0 comments on commit fbd816c

Please sign in to comment.