GithubHelp home page GithubHelp logo

hayanisaid / rnal Goto Github PK

View Code? Open in Web Editor NEW
68.0 2.0 5.0 2.96 MB

Animations library for react-native

License: MIT License

JavaScript 77.45% Java 4.29% Objective-C 11.92% Starlark 6.33%
animations animation-library react-native react-native-animation animation-api transitions javascript android ios react-native-library

rnal's Introduction

react-native animations library (rnal) that makes using the animations 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

How to use it πŸ‘‡

🎈 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 🎁

Props Value Default Description
duration number 300 Play the audio track that matches the system language. If none match, play the first track.
startWhen boolean false set when the animation should start, by default the animation start when the component mount.
infinite boolean false Determine if the animation is infinite or just run once.
direction string 300 specify the direction of the animation ex("toRight", "toLeft", "up","down).
sets Object {from:0,to:180} set the point start and the end of the animation, used with Rotate animation .

rnal's People

Contributors

dependabot[bot] avatar hayanisaid avatar joeyfigaro avatar sercanuste avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rnal's Issues

TypeScript Error

This is the error l get when l install the library in a react -native project.

`Could not find a declaration file for module 'rnal'.
'.../node_modules/rnal/index.js' implicitly has an 'any' type.

Try npm i --save-dev @types/rnal if it exists or add a new declaration (.d.ts) file containing declare module 'rnal';

Unfortunately, when l tried yarn add -D @types/anal l got this error error An unexpected error occurred: "https://registry.yarnpkg.com/@types%2frnal: Not found".

"react": "16.13.1",
"react-dom": "^16.13.1",
"react-native": "0.63.2",
"rnal": "^0.2.1",

Fix normal vs. dev dependencies

Installing rnal currently causes a haste module naming collision because two copies of react-native exist in node_modulesβ€”one for whatever project installed rnal, and rnal's copy at node_modules/rnal/node_modules/react-native

Fastest way to address this is to move react-native to devDependencies

SlideOut option

Hi

Can you please confirm if I can use the SlideIn option to also perform a SlideOut.

I'm looking for a library where I can SlideInLeft and SlideOutRight some content based on toggle button event.

Thanks

Unable to resolve module `AccessbilityInfo`

From a fresh implementation using yarn add rnal and simple addition of SlideInRight my build results in a red screen.

Simulator Screen Shot - iPhone 11 - 2020-01-07 at 10 20 49

    OS: macOS 10.15.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 1.27 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.12.0 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 23, 26, 27, 28, 29
      Build Tools: 27.0.3, 28.0.3, 29.0.2
      System Images: android-25 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
  IDEs:
    Android Studio: 3.5 AI-191.8026.42.35.5977832
    Xcode: 11.3/11C29 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

error AccessibilityInfo

Unable to resolve "AccessibilityInfo" from "node_modules\rnal\node_modules\react-native\Libraries\react-native\react-native-implementation.js"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.