New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-simple-transition

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-simple-transition

A small component that automatically transitions child changes

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
0
Created
Source

Build npm version

react-native-simple-transition

A minimalist and easy to use transition component for React Native.

animated example

Usage

Install the library

yarn add react-native-simple-transition

Create a transition component and add the content as a child. New components will transition with an animation every time the content key changes.

import { WithPushTransition } from 'react-native-simple-transition';

const MyComponent = () => {
  const [count, setCount] = useState(0);
  
  return (
    <WithPushTransition contentKey={count} style={{flex: 1}}>
      <Text onPress={() => setCount(count+1)}>
        This component will smoothly transition on key changes.
      </Text>
    </WithPushTransition>
  )
}

Currently the only transition component is WithPushTransition. More are planned to be added soon.

WithPushTransition

Optional properties

  • contentKey: alternative to updating the child's key property
  • duration: transition duration in milliseconds
  • style: the style given to the transition component
  • easing: an easing function for the transition
  • direction: the direction of the transition; can be "left", "right", "up" or "down"

Keywords

android

FAQs

Package last updated on 27 Jul 2025

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