Skip to content

Commit

Permalink
Update habits example (#5453)
Browse files Browse the repository at this point in the history
## Summary

Update habits example as it now works fine on web.

## Test plan

Tested on Habits example
  • Loading branch information
m-bert committed Dec 4, 2023
1 parent 15717e7 commit fcdb9ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/examples/LayoutAnimations/HabitsExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Animated, {
LightSpeedInLeft,
BounceIn,
AnimatedProps,
FadeOut,
} from 'react-native-reanimated';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { faCheck, faClose } from '@fortawesome/free-solid-svg-icons';
Expand Down Expand Up @@ -137,8 +138,7 @@ function Button({ onPress, entering }: ButtonProps) {
style={styles.buttonContainer}
onPress={onPress}
entering={entering}
// exiting={FadeOut} // doesn't behave well on the web
>
exiting={FadeOut}>
<Animated.View style={styles.button}>
<Animated.Text style={styles.buttonText}>Continue</Animated.Text>
</Animated.View>
Expand Down

0 comments on commit fcdb9ce

Please sign in to comment.