Code Monkey home page Code Monkey logo

05-ig22rn-ignite-quiz's Introduction

Ignite Quiz

This readme serves as a guide for the "Ignite Quiz" a project designed for exploration and experimentation with React Native animations.

What's Inside?

Dive into the world of React Native animations with this project! It serves as a practical space to play around with various animation techniques and libraries.

Tech Stack Playground:


This project was built following the Rocketseat react-native bootcamp, its was started from a basic template to get deep into animations in react-native, being a good playground to flex.

React-reanimated is the library used to build the project animation, being today the most relevant animation library in the environment, being well maintained, wildly adopted, performative and well documented.

Core concepts

The RNR uses the cpu treads out-of-box.
  • useSharedValue
    • Keep values to be used on animations, and the animation are reactive to its changes.
  • useAnimatedStyles
    • Used to define the styles meant to be animated based on the sharedValues,must be used with Animated Components.
  • AnimatedComponent
    • Its a Wrapper that injects animation props to components that don't have their animation requirements.
  • Animations factories
    • like withTiming, withSpring, withDelay, withClamp,etc.. that help us create amazing animations.
  • Layout Animations
    • The Keyframe class implements a sequential animation like the web version
    • That available plenty of predefined Animations transitions like, Linear, Sequenced, Fading,Curves,etc...
    • And its possible to create Custom animation
  • Gesture / GestureDetector
    • Its classes that enables us to handle micro integrations with elements like Pan, Tap, Pinch, FLing,etc..

It's a 2D graphics library that provides a engine to handle graphics and some animations.

Usage

In this project we used Skia to drawn check boxes and animate it with its on API tools. It was used also to replicate SVGs elements layers and implementing amazing granular animation.

Sound/Haptics Feedback

Here we used the package expo-av to load audio files and integrated it with out actions effects to enrich the user feedback experience. Another package used was the expo-haptics the provides a seemly API to handle with the devices vibration system, integrated here with some actions side effects as well.

Limitations

Atm this project runs [email protected] that recommends [email protected], this RNR version has a well known problem with the Keyframe class integration, causing crashes issues that was fixed in the version 3.7.0, here I tried to upgrade/downgrade its version butI faced another integration issues, and due it I preferred comment the Keyframe animation and I will comeback here as soon as there is any official integration with the RNR newer version.

Run the Project

1 - Clone the project in your machine

2 - Install dependencies

  npm run install

3 - Them start the project with expo-go

  npm run start

05-ig22rn-ignite-quiz's People

Contributors

luiz504 avatar

Watchers

 avatar

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.