Skip to content

(PC-38594) chore(RN): Bump RN from 0.78 to 0.80#8909

Merged
mlassauzay-pass merged 1 commit intomasterfrom
PC-38594-bump-RN
Dec 3, 2025
Merged

(PC-38594) chore(RN): Bump RN from 0.78 to 0.80#8909
mlassauzay-pass merged 1 commit intomasterfrom
PC-38594-bump-RN

Conversation

@mlassauzay-pass
Copy link
Copy Markdown
Contributor

@mlassauzay-pass mlassauzay-pass commented Nov 14, 2025

🔄 Mise à jour react-native@0.80

Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-38594

Lien utiles

Releases overview
Release note
Changelog
Upgrade helper

📊 État d'avancement (après que la CI soit verte)

  • 🌐 build web yarn build:testing && yarn vite preview --mode=testing
  • 🚀 dev web yarn start:web:testing
  • 🤖 build android ./gradlew assembleDebug
  • ⚡ dev android yarn android:testing
  • 🍎 dev ios yarn ios:testing
  • 📚 build storybook yarn build-storybook
  • 🎨 dev storybook yarn storybook
  • 🧪 tests e2e
  • 🚀 build environnement de test yarn trigger:testing:deploy
  • 🙊 mettre un message sur le canal slack dev-mobile
Tâche Commande Etat attendu
🌐 build web yarn build:testing ✅ succès de la commande
🚀 dev web yarn start:web:testing ✅ succès de la commande + pas d'écran blanc
🤖 build android ./gradlew assembleDebug ✅ succès de la commande
⚡ dev android yarn android:testing ✅ succès de la commande + pas d'écran rouge
🍎 dev ios yarn ios:testing ✅ succès de la commande + pas d'écran rouge
📚 build storybook yarn build-storybook ✅ succès de la commande + pas de message d'erreur sur les composants
🎨 dev storybook yarn storybook ✅ succès de la commande + pas d'erreur en serveur local
🧪 tests e2e ajouter un tag e2e dans Github après chaque tentative 👨‍💻 Le QA doit valider que c'est bon de son côté
🚀 build environnement de test (après merge) yarn trigger:testing:deploy ✅ Le job passe

⚠️ Difficultés

Il est difficile de mettre à jour le AppDelegate.mm. Il faudrait utiliser le ios/AppDelegate.swift à la place.

🔧 Changements majeurs

Some features that are still experimental have been intentionally ignored and therefore not activated. We will see in future versions if these features become more reliable and should be enabled.
Depreciation warnings may have been ignored because no real alternative is yet available. These messages are primarily intended to inform users that RN is working on it.

RN 0.79 :

Lib fix :

RN changes :

  • Android faster app startup but bigger APK by default
  • Calling pod install is deprecated (a message is displayed) but this is more to inform users that RN is looking to move away from CocoaPods than to actually ask them to switch right now. If pod install is required in a project, it's advisable to continue using it for the time being.

RN 0.80 :

Lib fix :

  • move from react-native-fast-image 8.6.3 to @d11/react-native-fast-image 8.13.0 to supported RN 0.80: ⚠️ react-native-fast-image is no longer maintained and @d11/ is the most active fork
  • upgrade react-native-reanimated from 3.18.0 to 4.1.5 : RN 0.80 supported from 4.0.0.
    Add react-native-worklets lib, It has been separated from Reanimated but remains necessary
  • upgrade @gorhom/bottom-sheet from 4.6.3 to 5.2.6 for compatibility reason
  • upgrade react-native-maps from 1.23.12 to 1.26.0 because of error : Unimplemented component: <RNMapsMapView>
  • upgrade react-native-gesture-handler from 2.26.0 to 2.29.1 : for compatibility reason and RN 0.81 supported from 2.29.0.
    ⚠️ TouchableOpacity and TouchableWithoutFeedback are deprecated and no longer seems to work in tests
  • patch react-native-date-picker because of RNDatePickerManager does not conform to RCTModuleProvider
    ⚠️ Not maintained ?

RN changes :

@mlassauzay-pass mlassauzay-pass force-pushed the PC-38594-bump-RN branch 3 times, most recently from e228631 to 7b5275c Compare November 17, 2025 10:42
@mlassauzay-pass mlassauzay-pass changed the title (PC-38594) chore(deps): Bump RN from 0.78 to 0.80 (WIP) (PC-38594) chore(RN): Bump RN from 0.78 to 0.80 (WIP) Nov 17, 2025
@mlassauzay-pass mlassauzay-pass added the e2e Build & run les tests e2e sur IOS & Android label Nov 26, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Les tests E2E iOS et Android ont été lancés !

Les résultats seront disponibles :

@mlassauzay-pass mlassauzay-pass added e2e Build & run les tests e2e sur IOS & Android and removed e2e Build & run les tests e2e sur IOS & Android labels Nov 27, 2025
@mlassauzay-pass mlassauzay-pass added e2e Build & run les tests e2e sur IOS & Android and removed e2e Build & run les tests e2e sur IOS & Android labels Nov 27, 2025
@mlassauzay-pass mlassauzay-pass added the e2e Build & run les tests e2e sur IOS & Android label Nov 27, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Les tests E2E iOS et Android ont été lancés !

Les résultats seront disponibles :

@mlassauzay-pass mlassauzay-pass removed the e2e Build & run les tests e2e sur IOS & Android label Dec 1, 2025
@mlassauzay-pass mlassauzay-pass force-pushed the PC-38594-bump-RN branch 2 times, most recently from 355e302 to 0e82baa Compare December 1, 2025 16:10
@mlassauzay-pass mlassauzay-pass changed the title (PC-38594) chore(RN): Bump RN from 0.78 to 0.80 (WIP) (PC-38594) chore(RN): Bump RN from 0.78 to 0.80 Dec 1, 2025
@mlassauzay-pass mlassauzay-pass added the e2e Build & run les tests e2e sur IOS & Android label Dec 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 1, 2025

🚀 Les tests E2E iOS et Android ont été lancés !

Les résultats seront disponibles :

Copy link
Copy Markdown
Contributor

@xlecunff-pass xlecunff-pass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🍾

Comment thread jest/jest.setup.ts
Comment on lines +41 to +46
jest.spyOn(Keyboard, 'addListener').mockImplementation(
() =>
({
remove: jest.fn(),
}) as unknown as EmitterSubscription
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peut être le déplacer dans le dossier __mocks__/
Ce fichier va être appelé au début de chaque test vs quand il sera importé si il est dans le dossier de mocks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vu avec toi : Après avoir tout essayé je n'ai pas réussi à créer un mock plus global dans __mocks__/ donc on reste là-dessus sauf si quelqu'un y arrive.
PS : Le problème touche énormément de tests

@lbeneston-pass
Copy link
Copy Markdown
Contributor

Est-ce que tu peux mettre un TODO(PC-39019): ... la ou tu as ajouté le mock pour gérer le problème du touchable opacity de react-native-gesture-handler ? Comme ça on a plus de contexte dans le code et on garde une trace de notre futur tâche ?

Comment thread ios/PassCulture/Info.plist
Copy link
Copy Markdown
Contributor

@lbeneston-pass lbeneston-pass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀

Comment thread src/features/location/components/HomeLocationModal.native.test.tsx Outdated
Comment thread src/features/location/components/SearchLocationModal.native.test.tsx Outdated
Comment thread src/features/location/components/VenueMapLocationModal.native.test.tsx Outdated
Comment thread src/ui/components/keyboard/useKeyboardEvents.native.test.ts
Comment thread src/ui/components/modals/AppModal.native.test.tsx Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 3, 2025

- update zustand because of : https://github.com/pmndrs/zustand/releases/tag/4.5.7
- fix typescript errors due to setTimeout() and setInterval()
- fix removeGeneratedStorageKey.native.test.ts
- fix ConsentSettings.native.test.tsx
- move from react-native-fast-image 8.6.3 (no longer maintained) to @d11/react-native-fast-image 8.13.0 to supported RN 0.80
- upgrade react-native-reanimated from 3.18.0 to 4.1.5 to support RN 0.80
Add react-native-worklets lib, It has been separated from Reanimated but remains necessary
- upgrade @gorhom/bottom-sheet from 4.6.3 to 5.2.6 for compatibility reason
- upgrade react-native-maps from 1.23.12 to 1.26.0 because of error : Unimplemented component: <RNMapsMapView>
- patch react-native-date-picker (seems to no longer be maintained) because of RNDatePickerManager does not conform to RCTModuleProvider
- upgrade react-native-gesture-handler from 2.26.0 to 2.29.1 for compatibility reason.
`TouchableOpacity` and `TouchableWithoutFeedback` are deprecated and no longer seems to work in tests
@mlassauzay-pass mlassauzay-pass merged commit abb6a80 into master Dec 3, 2025
20 checks passed
@mlassauzay-pass mlassauzay-pass deleted the PC-38594-bump-RN branch December 3, 2025 13:08
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Dec 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Build & run les tests e2e sur IOS & Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants