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

rnal

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rnal

Small animation library for react-native'

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

React Native animations library that makes using react-native animations API easy 🚀

Markdown Monster icon Markdown Monster icon Markdown Monster icon Markdown Monster icon Markdown Monster icon

Installation ⚓️

  • NPM
npm -i rnal --save
  • Yarn
yarn add rnal

Simply usage 💪🏽 🙌

🎈 Fade 🎈

import { Fade } from "rnal";
export default class App extends Component<Props, State> {

  render() {

    return (
      <View style={{flex:1}}>
        <Fade >
          <Image
            source={require("./images/flowrs.jpg")}
            height={200}
            width={450}
            style={{ width: 350, height: 200 }}
            resizeMode="cover"
          />
        </Fade>
      </View>
    );
  }
}


Options and props 🎁

PropsValueDefaultDescription
durationnumber300Play the audio track that matches the system language. If none match, play the first track.
startWhenbooleanfalseset when the animation should start, by default the animation start when the component mount.
infinitebooleanfalseDetermine if the animation is infinite or just run once.
directionstring300specify the direction of the animation ex("toRight", "toLeft", "up","down).
setsObject{from:0,to:180}set the point start and the end of the animation, used with Rotate animation .

Keywords

android

FAQs

Package last updated on 28 Mar 2019

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