All Projects β†’ IjzerenHein β†’ React Navigation Magic Move

IjzerenHein / React Navigation Magic Move

Licence: mit
Bindings for using react-navigation with react-native-magic-move 🐰🎩✨

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Navigation Magic Move

UnityGUI
UGUI Panel Systems for navigation, animation and more
Stars: ✭ 80 (-39.39%)
Mutual labels:  effects, transitions
Ramjet
Morph DOM elements from one state to another with smooth animations and transitions
Stars: ✭ 5,455 (+4032.58%)
Mutual labels:  effects, transitions
Lax.js
Simple & lightweight (<4kb gzipped) vanilla JavaScript library to create smooth & beautiful animations when you scroll.
Stars: ✭ 8,274 (+6168.18%)
Mutual labels:  effects, transitions
Parapet
A purely functional library to build distributed and event-driven systems
Stars: ✭ 106 (-19.7%)
Mutual labels:  effects
Material Motion Swift
A toolkit for building responsive motion using Core Animation.
Stars: ✭ 1,417 (+973.48%)
Mutual labels:  transitions
Core
UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps
Stars: ✭ 112 (-15.15%)
Mutual labels:  transitions
Expo Disneyplus
Disney+ UI Clone with React Native & Expo
Stars: ✭ 130 (-1.52%)
Mutual labels:  react-navigation
Hyperapp Fx
Effects for use with Hyperapp
Stars: ✭ 105 (-20.45%)
Mutual labels:  effects
Effection
Effortlessly composable structured concurrency primitive for JavaScript
Stars: ✭ 120 (-9.09%)
Mutual labels:  effects
Jtop
SVG virtual desktop library that lets you build beautiful desktop like user interfaces.
Stars: ✭ 108 (-18.18%)
Mutual labels:  effects
Jmusic
ι‡ζž„δΈ€ζ¬ΎιŸ³δΉapp
Stars: ✭ 108 (-18.18%)
Mutual labels:  react-navigation
Particleeffectforugui
Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
Stars: ✭ 1,941 (+1370.45%)
Mutual labels:  effects
Scala Effekt
Extensible algebraic effects with handlers
Stars: ✭ 113 (-14.39%)
Mutual labels:  effects
Js Rocks
JS Rocks - Web Audio electric guitar effects and cabinets
Stars: ✭ 106 (-19.7%)
Mutual labels:  effects
Shurikenplus
A collection of custom shaders for Unity particle system (Shuriken).
Stars: ✭ 121 (-8.33%)
Mutual labels:  effects
Slide Menu
A multilevel page menu with a smooth slide effect
Stars: ✭ 105 (-20.45%)
Mutual labels:  transitions
Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (-12.12%)
Mutual labels:  transitions
Reactnativeauth
Mobile user authentication flow with React Native, Expo, and AWS Amplify: Sign In, Sign Up, Confirm Sign Up, Forget Password, Reset Password.
Stars: ✭ 108 (-18.18%)
Mutual labels:  react-navigation
Functionaljava
Functional programming in Java
Stars: ✭ 1,472 (+1015.15%)
Mutual labels:  effects
2d Unity Experiments
A collection of visual Unity experiments with latest packages (URP, Shader Graph, Cinemachine, etc).
Stars: ✭ 107 (-18.94%)
Mutual labels:  effects

react-navigation-magic-move

Bindings for using react-navigation with react-native-magic-move 🐰🎩✨

Why is this needed

react-native-magic-move triggers its animations whenever it detects that a new MagicMove view has been mounted. However, navigation libraries such as react-navigation keep components mounted for better performance and faster switching. This means that actions such as back navigation, tab switching or modal popups don't trigger an animation or don't trigger it consistently. This binding solves that problem by installing a hook that forwards the navigator scene information to react-native-magic-move.

Usage

Installation

$ yarn add react-navigation-magic-move

Import the library somewhere at the top of your code

import "react-navigation-magic-move";

And make sure that your scenes are wrapped with <MagicMove.Scene>

Example

const Scene1 = () => (
  <MagicMove.Scene>
    ...
    <MagicMove.View
      id="myView"
      style={{
        alignSelf: "center",
        width: 100,
        height: 100,
        backgroundColor: "green",
        borderRadius: 20
      }}
    />
    ...
  </MagicMove.Scene>
);

const Scene2 = () => (
  <MagicMove.Scene>
    ...
    <MagicMove.View
      id="myView"
      style={{
        height: 300,
        backgroundColor: "purple"
      }}
    />
    ...
  </MagicMove.Scene>
);

That's it!

Magic-move will now animate your components when transitioning from one scene to another. If you want to opt-out of transitions, then use the disabled prop to turn off transitions towards that scene or component.

MagicMoveGif

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].