Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [IOPLT-551] Upgrade react-native to 0.72 #5864

Merged
merged 237 commits into from
Jul 10, 2024

Conversation

CrisTofani
Copy link
Contributor

@CrisTofani CrisTofani commented Jun 14, 2024

Short description

This PR aims to upgrade react-native to 0.72 version and increment some of the chore dependencies

List of changes proposed in this pull request

  • Bump react-native version
  • Bumps jail-monkey version
  • Bumps react-native-reanimated version
  • Bumps react-native-pdf version
  • Bumps react-native-safe-area-context version
  • Bumps react-native-screens version
  • Bumps react-native-vision-camera version
  • Removes react-native-popup-menu
  • Removes react-native-sha256

How to test

Clean all projects build/cache folders, reinstall and build again

@CrisTofani CrisTofani merged commit c8751b7 into master Jul 10, 2024
13 checks passed
@CrisTofani CrisTofani deleted the IOPLT-551-upgrade-to-rn-072 branch July 10, 2024 10:27
mastro993 added a commit that referenced this pull request Jul 10, 2024
…5922)

> [!WARNING]
> This PR depends on #5864

## Short description
This PR adds the initial scaffolding of the **IT Wallet activation** and
**IT Wallet credential** issuance XState machines.

### State diagrams
- IT Wallet activation machine:
https://stately.ai/registry/editor/embed/393bb84d-c50f-4184-a882-0fcf0fff8def?machineId=6392ceb2-a47e-4484-8723-af34a8765b65
- IT Wallet credential issuance machine:
https://stately.ai/registry/editor/embed/393bb84d-c50f-4184-a882-0fcf0fff8def?machineId=f54b1d6b-9163-49a4-a6a5-2a1f560001ba

## List of changes proposed in this pull request
- Added `ItwEidIssuanceMachine` with actions and actors stub
implementations
- Added `ItwEidIssuanceMachineContext` and `Provider`
- Added `ItwCredentialIssuanceMachine` with actions and actors stub
implementations
- Added `ItwCredentialIssuanceMachineContext` and `Provider`
- Wrapped `ItwStackNavigator` with the `ItwEidIssuanceMachineProvider`
and `ItwCredentialIssuanceMachineProvider`

## How to test
Static checks should pass.
From the I**T Wallet playground**, open the **Discovery** feature and
check that machine events are correctly dispatched (navigation events).

---------

Co-authored-by: Cristiano Tofani <cri.tofani@gmail.com>
Co-authored-by: Fabio Bombardi <16268789+shadowsheep1@users.noreply.github.com>
Co-authored-by: LazyAfternoons <lazyafternoons@outlook.it>
Co-authored-by: Damiano Plebani <damiano.plebani@pagopa.it>
Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>
Co-authored-by: LazyAfternoons <LazyAfternoons@users.noreply.github.com>
Co-authored-by: Andrea Piai <andrea.piai@pagopa.it>
CrisTofani added a commit that referenced this pull request Jul 23, 2024
> [!note]
> Depends on #5864 

## Short description
This PR sets Android API Level to 34 and upgrades
`react-native-vision-camera` to solve compatibility issues

## List of changes proposed in this pull request
- Sets Android API Level to 34
- Removes `vision-camera-code-scanner`
- Updates `react-native-vision-camera`
- Refactors the app components using the camera to scan Barcode

## How to test
Test barcode code scanning to check everything is ok on both iOS and
Android. Normally use the App on Android to check if the new API Level
bump compromises anything

---------

Co-authored-by: Fabio Bombardi <16268789+shadowsheep1@users.noreply.github.com>
Co-authored-by: LazyAfternoons <lazyafternoons@outlook.it>
Co-authored-by: Federico Mastrini <federicomastrini93@gmail.com>
Co-authored-by: Damiano Plebani <damiano.plebani@pagopa.it>
Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>
Co-authored-by: LazyAfternoons <LazyAfternoons@users.noreply.github.com>
Co-authored-by: Andrea Piai <andrea.piai@pagopa.it>
dmnplb added a commit that referenced this pull request Aug 8, 2024
… + Dynamic header background (under the new Experimental Lab category) (#5954)

> [!note]
> This PR depends on:
> * #5947

## Short description
This PR adds the latest version of the `react-native-skia` library and
the new **Experimental Lab** section which includes the new **Dynamic
header background** screen, built with the `skia` library

## List of changes proposed in this pull request
- Add the `react-native-skia` library
- Update `jest` config files to include `react-native-skia` references
- Add the new **Experimental Lab** section
- Add the new **Dynamic header background** as first experiment

### Preview


https://github.com/pagopa/io-app/assets/1255491/802fee95-72ac-46d1-9a93-cdf8e5195b88


 
### Acknowledgement
We've successfully added this library thanks to the RN upgrade to the
`0.72` version:
- #5864

## How to test
1. Launch the app in the local environment
2. Go to the **Experimental Lab** → **Dynamic header background**

---------

Co-authored-by: LazyAfternoons <lazyafternoons@outlook.it>
Co-authored-by: Cristiano Tofani <cri.tofani@gmail.com>
Co-authored-by: Federico Mastrini <federicomastrini93@gmail.com>
Co-authored-by: Mario Perrotta <mario.perrotta@pagopa.it>
Co-authored-by: Fabio Bombardi <16268789+shadowsheep1@users.noreply.github.com>
Co-authored-by: Alice Di Rico <83651704+Ladirico@users.noreply.github.com>
Co-authored-by: LazyAfternoons <LazyAfternoons@users.noreply.github.com>
Co-authored-by: Andrea Piai <andrea.piai@pagopa.it>
dmnplb added a commit to pagopa/io-app-design-system that referenced this pull request Aug 26, 2024
… the new `HStack` and `VStack` components (#303)

>[!caution]
> This PR depends on the following PR. **Do not merge the PR beforehand,
otherwise it might break part of the UI**.
> * pagopa/io-app#5864

## Short description
This PR refactors `Modules…` and `NumberPad` components to take
advantage of the new `HStack` and `VStack` components.

## List of changes proposed in this pull request
- Update `NumberPad` and `CodeInput` to replace the logic using
`VSpacer` and `HSpacer`
- Update all the `Modules…` components (both interactive and skeleton
states) using `HStack` and `VStack`
- Refactor `HStack` and `VStack` to apply some specific style properties
(`alignItems`, `flexShrink`, etc…)

### Related PRs
* #241
* #297

## How to test
1. Launch the example app
2. First, check **Numberpad** screen
3. Second, check **Modules** screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.