Skip to content

Commit

Permalink
chore(Cross): [IOAPPX-206] Add dynamic card effect based on device ro…
Browse files Browse the repository at this point in the history
…tation (#5715)

> [!important]
> This PR depends on:
> * ~#5954 **(merged and
reverted)**
> * #6123

## Short description
This PR adds a new card with dynamic light whose movement is based on
the rotation of the device. The goal is to make light appear to reflect
on the card just as it appears in the real world. The current
implementation is based on the value exposed by the `useAnimatedSensor`
method provided by the `reanimated` library.

## List of changes proposed in this pull request
- Add the new `DSDynamicCardRotation` screen
- Add relative assets

### Preview


https://github.com/user-attachments/assets/943ee38a-023f-4d77-9f00-06a298cc7de0



## How to test
1. Launch the app in a physical device (not simulator)
2. Go to the **Dynamic card based on device rotation** page and try to
rotate the device

---------

Co-authored-by: LazyAfternoons <[email protected]>
Co-authored-by: Cristiano Tofani <[email protected]>
Co-authored-by: Alice Di Rico <[email protected]>
Co-authored-by: Fabio Bombardi <[email protected]>
Co-authored-by: Mario Perrotta <[email protected]>
Co-authored-by: LazyAfternoons <[email protected]>
Co-authored-by: Andrea Piai <[email protected]>
Co-authored-by: Federico Mastrini <[email protected]>
  • Loading branch information
9 people authored Dec 18, 2024
1 parent db8121f commit c959d6a
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c959d6a

Please sign in to comment.