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

Mobile: Upgrade to React Native 0.76 and enable the New Architecture #11826

Draft
wants to merge 12 commits into
base: dev
Choose a base branch
from

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Feb 11, 2025

Summary

This pull request upgrades to React Native 0.76 and enables the New Architecture.

Rationale:

  • React Native's New Architecture is now the default in RN 0.76.
    • This should bring performance improvements.
    • This may simplify creating native modules.
  • Voice typing:
    • I would like to check whether whisper.cpp (a C++ library) is able to run larger Whisper models on mobile devices. With ONNX, the largest model that works on my Android device is whisper-tiny. The ONNX library also seems to cause crashes during voice typing on 32-bit Android.
    • React Native includes a guide for writing custom native modules in C++. The guide describes creating a Turbo native module, which requires the New Architecture.
  • Reporting React Native bugs:

Observed issues

(Testing on iOS 18 and Android API 35)

Changed libraries

Some libraries needed to be upgraded to support the new React Native version and the New Architecture:

  • Switching to a maintained fork that supports the New Architecture:
  • Other package upgrades:
    • react-native-image-picker, react-native-document-picker (renamed to @react-native-documents/picker), expo, expo-camera, react-native-paper, react-native-webview.

@personalizedrefrigerator personalizedrefrigerator changed the title Mobile: Upgrade to React Native 0.76 and the New Architecture Mobile: Upgrade to React Native 0.76 and enable the New Architecture Feb 11, 2025
@personalizedrefrigerator personalizedrefrigerator added the mobile All mobile platforms label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile All mobile platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant