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

Upgrade React Native 0.66.4 #1697

Merged
merged 42 commits into from
Jan 12, 2022
Merged

Upgrade React Native 0.66.4 #1697

merged 42 commits into from
Jan 12, 2022

Conversation

kathaypacific
Copy link
Collaborator

@kathaypacific kathaypacific commented Dec 29, 2021

Description

Upgrade react native to 0.66.4.

Notable changes in this PR include:

Other changes

N/A

Tested

E2E tests should work as usual, app should build and function as usual.

How others should test

A basic regression - click around the app and see no broken functionalities

Related issues

Backwards compatibility

N/A

@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #1697 (8192581) into main (2765358) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1697      +/-   ##
==========================================
- Coverage   76.58%   76.57%   -0.02%     
==========================================
  Files         520      520              
  Lines       19360    19359       -1     
  Branches     3544     3544              
==========================================
- Hits        14827    14824       -3     
- Misses       4464     4466       +2     
  Partials       69       69              
Impacted Files Coverage Δ
packages/mobile/src/app/saga.ts 53.28% <0.00%> (+0.38%) ⬆️
packages/mobile/src/navigator/DrawerTopBar.tsx 90.90% <ø> (ø)
...ckages/mobile/src/verify/VerificationCountdown.tsx 85.71% <ø> (ø)
packages/mobile/src/utils/useClipboard.ts 91.30% <100.00%> (ø)
...ages/react-components/components/SmartTopAlert.tsx 60.00% <0.00%> (-5.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2765358...8192581. Read the comment docs.

@kathaypacific kathaypacific marked this pull request as ready for review January 6, 2022 10:19
Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

OMG, amazing!! 🚀 🤩 🎉

@@ -2,7 +2,7 @@
<style name="AppTheme" parent="Base.V0.AppTheme"/>

<!-- Base theme, also see API specific overrides in values-vXX/styles.xml -->
<style name="Base.V0.AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<style name="Base.V0.AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to change this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i don't have a better answer than i tried to copy the changes here https://react-native-community.github.io/upgrade-helper/?from=0.63.4&to=0.66.4 - my naive thinking is that newer versions of android has light/dark themes but i didn't look into it much. do you prefer to keep it unchanged?

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good. Maybe we should double check how the app is impacted when the dark theme is selected (Settings -> Display -> Theme).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I quickly checked this, the app looks the same as usual in dark mode (except for the native things like keyboard and alerts which are dark) 🙈

patches/react-native-fast-crypto+2.0.0.patch Show resolved Hide resolved
Copy link
Contributor

@jh2oman jh2oman left a comment

Choose a reason for hiding this comment

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

Was able to build after switching my terminal to Rosetta mode.

@kathaypacific kathaypacific added the automerge Have PR merge automatically when checks pass label Jan 12, 2022
@mergify mergify bot merged commit 15c68ad into main Jan 12, 2022
@mergify mergify bot deleted the kathy/upgrade-RN-65 branch January 12, 2022 14:16
mergify bot pushed a commit that referenced this pull request Jan 18, 2022
### Description

App was crashing on Android when proguard was enabled.

This was caused by the `react-native-reanimated` upgrade in #1697
See software-mansion/react-native-reanimated#2725

### Other changes

- Detox release builds now use proguard too (with some Detox specific rules so it still works). This way, our e2e check has a higher chance of catching this type of issue. Though here, this specific reanimated proguard issue wouldn't have been caught. I tested it and apparently the Detox specific proguard rules made it disappear too.

### How others should test

App starts on Android release builds without crashing.

### Related issues

- Fixes #1789

### Backwards compatibility

Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade React Native version
4 participants