All Projects → ambistudio → react-native-onboarding-animate

ambistudio / react-native-onboarding-animate

Licence: other
React Native component for onboarding processes, supported background animation and given animatedValue

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to react-native-onboarding-animate

awesome-engineer-onboarding
😎 A curated list of awesome resources for engineer onboarding
Stars: ✭ 76 (+261.9%)
Mutual labels:  onboarding
aloha
An onboarding bot for busy admins and growing Slack teams.
Stars: ✭ 20 (-4.76%)
Mutual labels:  onboarding
RN-intro-screen
Usage of intro / welcome screen in react-native as onboarding slider swiper
Stars: ✭ 15 (-28.57%)
Mutual labels:  onboarding
FastOnBoarding
very easy onboarding page
Stars: ✭ 18 (-14.29%)
Mutual labels:  onboarding
pal-plugin
The Flutter onboarding editor
Stars: ✭ 16 (-23.81%)
Mutual labels:  onboarding
GuideChimp
Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
Stars: ✭ 138 (+557.14%)
Mutual labels:  onboarding
Ampoptip
An animated popover that pops out a given frame, great for subtle UI tips and onboarding.
Stars: ✭ 2,854 (+13490.48%)
Mutual labels:  onboarding
blinkid-flutter
ID scanning plugins for cross-platform apps built with Flutter.
Stars: ✭ 55 (+161.9%)
Mutual labels:  onboarding
Android-Onboarder
Android Onboarder is a simple and lightweight library that helps you to create cool and beautiful introduction screens for your apps without writing dozens of lines of code.
Stars: ✭ 85 (+304.76%)
Mutual labels:  onboarding
WVWalkthroughView
WVWalkthroughView is an objective C based utility to highlight certain parts for iOS apps.
Stars: ✭ 29 (+38.1%)
Mutual labels:  onboarding
etalab
Livret de bienvenue destiné aux membres d’Etalab.
Stars: ✭ 24 (+14.29%)
Mutual labels:  onboarding
stepper-indicator
Step indicator for onboarding or simple viewpager
Stars: ✭ 180 (+757.14%)
Mutual labels:  onboarding
Ahoy
A lightweight swift library to build onboarding experiences.
Stars: ✭ 51 (+142.86%)
Mutual labels:  onboarding
haskell-for-typescript-devs
Onboarding Material: Haskell for TypeScript Developers
Stars: ✭ 37 (+76.19%)
Mutual labels:  onboarding
blinkid-ui-android
Customizable UI library that includes camera management, scanning screen, and document selection module.
Stars: ✭ 33 (+57.14%)
Mutual labels:  onboarding
guide
A new feature guide component by react 🧭
Stars: ✭ 597 (+2742.86%)
Mutual labels:  onboarding
members
Online portal for Code for Denver members
Stars: ✭ 15 (-28.57%)
Mutual labels:  onboarding
RoundCoachMark
The Swift library for showing the rounded coach marks (useful for onboarding or run-time help purposes)
Stars: ✭ 66 (+214.29%)
Mutual labels:  onboarding
PSAutomator
This PowerShell Module is new approach to onboarding, offboarding and business as usual processes running in companies infrastructure.
Stars: ✭ 56 (+166.67%)
Mutual labels:  onboarding
pal-widgets
A collection of widgets for making amazing onboarding experience in your flutter applications
Stars: ✭ 21 (+0%)
Mutual labels:  onboarding

React Native Onboarding Animate

React native component for onboarding processes with animation

Demo

Onboarding Animation Expo's snack

Install

Install react-native-onboarding-animate package and save into package.json:

$ npm install react-native-onboarding-animate --save

How to use?

import React, { Component } from 'react';

import OnboardingAnimate from 'react-native-onboarding-animate';
import {
  FirstScene,
  SecondScene,
  ThirdScene
} from './ExampleScenes';

export default class App extends Component {
  
  render() {

    // Define scenes, it will be displayed in order
    let scenes = [
      {
        component: FirstScene,
        backgroundColor: 'yellow'
      }, {
        component: SecondScene,
        backgroundColor: 'orange'
      }, {
        component: ThirdScene,
        backgroundColor: 'red'
      }
    ];

    return <OnboardingAnimate
        scenes={scenes}
        enableBackgroundColorTransition={true}
    />;
  }
}

animatedValue

Each of scence will be injected in this.props with an animatedValue with inputRange = [0, windowWidth]. This can be used for any animation within the scence by using interpolate. For example:

    var animateValue = this.props.animatedValue.interpolate({
        inputRange: [0, windowWidth],
        outputRange: [0, 10]
    })

(Please see actual code in the Expo example, file ./ExampleScenes/FirstScene.js line 19 )

Properties

Name Type Default Value Definition
scenes array of object { component: (required), backgroundColor: (optional) } - component: the view that will be displayed, backgroundColor: color of the view's background that will be animated
enableBackgroundColorTransition boolean undefined Set to true to animate background color when transitining view/component
activeColor string (hex, rgba, etc.) rgba(32, 119, 336, 1) color of active indicator, Continue button background color
inactiveColor string (hex, rgba, etc.) rgba(0, 0, 0, 0.2) color of inactive indicator

Property injected in each scence props

Name Type Default Value Definition
animatedValue interpolate value of Animated.Value inputRange: [0, windowWidth] an animated value, use for animation within a page by using this.props.animatedValue.interpolate

Transpile

Run the below command to transpile typescript to javascript

$ tsc

// yarn or npm
$ yarn build
$ npm run build

Todo

  • Test on android
  • Create tests
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].