Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-navigation-transitions

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-navigation-transitions

Custom transitions for react-navigation

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-navigation-transitions

Installation

npm install react-navigation-transitions --save

Instructions

These functions are meant to be used as the transitionConfig with react-navigation. So far it includes the following transitions:

fromLeft

fromTop

fadeIn

zoomIn

zoomOut

flipY

flipX

More will be added in future versions.

Example

import { createStackNavigator } from 'react-navigation';
import { fromLeft } from 'react-navigation-transitions';

const appStack = createStackNavigator(
  {
    ScreenA: {
      screen: ScreenA,
    },
    ScreenB: {
      screen: ScreenB,
    },
  },
  {
    initialRouteName: 'ScreenA',
    transitionConfig: () => fromLeft(),
  },
);

The default duration is 300 milliseconds but you can pass is a custom transition duration like so:

transitionConfig: () => fromLeft(1000),

GIFS

fromLeft

fromTop

fadeIn

zoomIn

zoomOut

flipY

flipX

The basis for these functions can be found in the react-navigation docs here.

Keywords

FAQs

Package last updated on 04 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc