Skip to content

Onboarding Animation

An easy to integrate onboarding screens with smooth color interpolation. Just pass Images, Texts and colors and it’s ready!!

Alt text

Installation

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

Props

PropTypeDescription
pagespage[]Array of objects where each objects have three properties(image, heading, subheading).
backgroundColorsany[]Array of strings containing color for each screen respectively.
onDonefunctionA function which defines what will happen when user press next after reaching last screen.
headingStyleobjectAn object containing styling properties for headings of screens.
subheadingStyleobjectAn object containing styling properties for subHeadings of screens.
buttonColorstringcolor of button.
buttonTextStyleobjectAn object containing styling properties for the button Text.
nextButtonReactElementContent in button (can be text or an icon).