Skip to content

Comments

New Architecture and Expo 53 upgrade#1086

Merged
kevinherdez merged 1 commit intoNWACus:kevinherdez/mapProjectfrom
kevinherdez:kevinherdez/newArchAndExpo53
Feb 13, 2026
Merged

New Architecture and Expo 53 upgrade#1086
kevinherdez merged 1 commit intoNWACus:kevinherdez/mapProjectfrom
kevinherdez:kevinherdez/newArchAndExpo53

Conversation

@kevinherdez
Copy link
Collaborator

This is a meaty change to get the project onto Expo 53 and the New Architecture

Most of the changes come directly from the last attempt to get this to work which can be found here:

The biggest differences are:

  1. The new architecture is on
  2. Removes code in WeatherTab.tsx that was temporary work around: Temporary work around for card collapse issue on Android #1078
  3. Creates a patch of @mobilereality/react-native-select-pro. This package currently doesn't support the new architecture however I added a new patch based off of this work around: newArchEnabled  MobileReality/react-native-select-pro#265 (comment)


return (
<Modal visible={visible} onRequestClose={onClose} animationType="fade">
<Modal visible={visible} onRequestClose={onClose} animationType="fade" presentationStyle="overFullScreen">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

presentationStyle="overFullScreen" is a work around for when the modal is presented from one of the tab views in the ForecastScreen.tsx. This keeps the view that the modal is being presented from in the background instead of removing it. It fixes an issue on iOS where the modal is being presented from a detached UIViewController because the view that the modals are being presented from are being removed from the view hierarchy

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The reason this diff is so big is because I removed the SafeAreaView from the modal. This created a big change according to git

Copy link
Collaborator

Choose a reason for hiding this comment

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

love it when git doesnt cooperate

firstOpen = true;
// set back to not be null since we want a shared obs to have a back button
back = {title: 'Observations'};
back = {title: 'Observations', href: undefined};
Copy link
Collaborator

Choose a reason for hiding this comment

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

i will admit this is not something I tested since sharing was not on yet - if we turn sharing on we should make sure this doesnt actually break anything


const onPolygonPress = useCallback(
(_: OnPressEvent) => {
(_: object) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why this change?

Copy link
Collaborator

@yuliadub yuliadub left a comment

Choose a reason for hiding this comment

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

looks good! thank you! did you test on android and does the font actually show up? (vs all text missing) I assume yes but also remember that font worked on dev builds and only didnt work in preview lol so crossing my fingers we dont need to deal with that issue since we did enable new arch 🤞

@kevinherdez
Copy link
Collaborator Author

looks good! thank you! did you test on android and does the font actually show up? (vs all text missing) I assume yes but also remember that font worked on dev builds and only didnt work in preview lol so crossing my fingers we dont need to deal with that issue since we did enable new arch 🤞

I have been testing on Android and it looks good, but I'll create a preview build off of this branch to make sure that we're good there!

@kevinherdez
Copy link
Collaborator Author

I'm going to check this in to play around with getting it into preview based on off of the mapProject branch

@kevinherdez kevinherdez merged commit 49acebb into NWACus:kevinherdez/mapProject Feb 13, 2026
@kevinherdez kevinherdez deleted the kevinherdez/newArchAndExpo53 branch February 14, 2026 00:39
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.

2 participants