Socket
Book a DemoInstallSign in
Socket

react-native-entrance-animation

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-entrance-animation

Simple entrance animation for React-Native components

1.0.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-entrance-animation

Supports Android and iOS    MIT License

Simple entrance animation for React-Native components



Getting started

npm i react-native-entrance-animation



Usage

Examples

import { AnimateMany } from 'react-native-entrance-animation';
     return (
          <AnimateMany right fade duration={1500} containerStyle={styles.container}>
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 1</Text></View>
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 2</Text></View>
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 3</Text></View>
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 4</Text></View >
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 5</Text></View >
               <View style={styles.itemContainer}><Text style={{ color: 'white' }}>item 6</Text></View >
          </AnimateMany >
     );
const styles = StyleSheet.create({
     container: {
          flex: 1,
          justifyContent: 'center',
          alignItems: 'center',
          padding: 10
     },
     itemContainer: {
          height: 40,
          width: '45%',
          backgroundColor: 'steelblue',
          justifyContent: 'center',
          alignItems: 'center'
     }
})

import { Animate } from 'react-native-entrance-animation';
return (
          <View style={styles.container}>
               <Animate top
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 1</Text>
               </Animate>
               <Animate left
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 2</Text>
               </Animate>
               <Animate right
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 3</Text>
               </Animate>
               <Animate bottom
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 4</Text>
               </Animate>
               <Animate fade delay={500}
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 5</Text>
               </Animate>
               <Animate zoom delay={1000}
                    containerStyle={styles.itemContainer}
               >
                    <Text style={{ color: 'white' }}>item 6</Text>
               </Animate>
          </View >
     );
const styles = StyleSheet.create({
     container: {
          flex: 1,
          justifyContent: 'space-evenly',
          alignItems: 'center',
          padding: 10
     },
     itemContainer: {
          height: 40,
          width: '45%',
          backgroundColor: 'steelblue',
          justifyContent: 'center',
          alignItems: 'center'
     }
})

API - Animate

PropertyTypeRequiredDefault
containerStylestyleno-
leftbooleannofalse
rightbooleannofalse
topbooleannofalse
bottombooleannofalse
zoombooleannofalse
fadebooleannofalse
springbooleannofalse
durationnumberno350
sizenumberno120
delaynumberno0
onAnimationEndcallbackno-

API - AnimateMany

PropertyTypeRequiredDefault
containerStylestyleno-
leftbooleannofalse
rightbooleannofalse
topbooleannofalse
bottombooleannofalse
zoombooleannofalse
fadebooleannofalse
springbooleannofalse
durationnumberno350
sizenumberno120
delaynumberno0
onAnimationEndcallbackno-
simultaneouslybooleannofalse



License

This project is licensed under the MIT License

Keywords

entrance

FAQs

Package last updated on 12 Nov 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.