Animations
Buzz

Buzz

This animation is generally used to give feedback to the user. For example, when the user presses this button, this animation runs to give fedback that an error has occoured.

Animation Options

Customize your animation using these options.

Check Customization for more info!

OptionsDescriptionDefault
frequencyThe frequency of oscillation effect2
rotationThe amount of rotation on each side2
durationDuration of the animation50 (ms)

Implementation

import { AnimatedWrapper } from 'react-native-micro-interactions';
 
return(
    <AnimatedWrapper animationTrigger='press' animationType='buzz'>
        <TouchableOpacity style={styles.container}>
            <Text>Press me!</Text>
        </TouchableOpacity>
    </AnimatedWrapper>
)
 
const styles = StyleSheet.create({
  container: {
    alignItems: 'center',
    justifyContent: 'center',
    backgroundColor: "red",
    paddingVertical: 15,
    marginVertical: 10,
    borderRadius: 10,
    width: 200,
  },
});