Skip to content

Animated Button

A button which changes it’s appearance if tapped

Alt text

Installation

  1. Install component
    Terminal window
    npm install @cascadeui/animatedbutton
  2. Add react-native-reanimated plugin into babel.config
    module.exports = {
    presets: [
    ... // don't add it here :)
    ],
    plugins: [
    ...
    'react-native-reanimated/plugin',
    ],
    };

Props

PropTypeDescription
buttonColorstringColor of the button.
buttonTextColorstringColor of button Text.
subscribeStatusbooleanstate of the button(subscribed/unsubscribed).
initialTextstringFirst text of button .
changeTextstringText that will appear after state change .