-
Notifications
You must be signed in to change notification settings - Fork 14
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
IGAPP-1061: Upgrade react and react native #843
Conversation
Will do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on android and firefox
assets/licenses.json | ||
src/assets/licenses.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to be moved. Maybe react resolves path now relative to src 🤷🏼♀️ (you'll need to remove your license.json in assets/licenses.json after this merge.
@@ -1,7 +1,7 @@ | |||
#!/usr/bin/env sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto generated by ./gradlew wrapper
@@ -14,7 +14,7 @@ | |||
@rem limitations under the License. | |||
@rem | |||
|
|||
@if "%DEBUG%" == "" @echo off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also auto generated by ./gradlew wrapper
@@ -0,0 +1,5 @@ | |||
cmake_minimum_required(VERSION 3.13) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the /jni/ files are basicly copy/pasted
@@ -54,18 +54,16 @@ | |||
"@react-native-async-storage/async-storage": "^1.16.3", | |||
"@react-native-clipboard/clipboard": "^1.10.0", | |||
"@react-native-community/geolocation": "^2.1.0", | |||
"@react-native-community/masked-view": "^0.1.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik not used
native/package.json
Outdated
"@react-native-community/progress-view": "1.3.1", | ||
"@react-native-firebase/app": "13.0.1", | ||
"@react-native-firebase/messaging": "13.0.1", | ||
"@react-native-mapbox-gl/maps": "^8.5.0", | ||
"@react-navigation/elements": "^1.3.4", | ||
"@react-navigation/native": "^6.0.11", | ||
"@react-navigation/stack": "^6.2.2", | ||
"@sentry/react-native": "^4.1.2", | ||
"@sentry/types": "^7.5.0", | ||
"@sentry/react-native": "^5.0.0-alpha.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compatibility upgrade
}, | ||
}, | ||
watchFolders: [path.resolve(__dirname, '../')], | ||
transformer: { | ||
assetPlugins: ['react-native-svg-asset-plugin'], | ||
getTransformOptions: async () => ({ | ||
transform: { | ||
experimentalImportSupport: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option does not exist
@@ -1,4 +1,4 @@ | |||
import { act, render, screen, waitFor } from '@testing-library/react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
half the tests in this file were failing after the upgrade. Therefore, many changes here.
ReactDOM.render(<App />, container) | ||
const root = createRoot(container) | ||
root.render(<App />) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enables concurrent renderer in web
acdc849
to
7704e60
Compare
b79840f
to
f80c1a9
Compare
f80c1a9
to
0c5f2f3
Compare
/** | ||
* only needed as FormData is a web-specific type | ||
* @jest-environment jsdom | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jest-environment jsdom has been removed from jest. So to avoid adding another dependency I mocked FormData instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it pretty thoroughly on a real iPhone :)
903ed77
to
4ebe9aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LeandraH looks like some stuff was messed up in project.pbxproj
At least the provisioning has to be reverted. I just roughly went through
Each change in this file should be tested if its needed. It was my bad not to check properly in your pr before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on ios real device. works fine.
Maybe we could merge it monday, since martin is not working next week? Just an idea
Please squash the commits and undo changes in version.json. |
This pull request belongs to an issue on our bugtracker.
You can find it there by looking for an issue with the key which is mentioned in the title of this pull request.
It starts with the keyword IGAPP.
What was updated?
Why are there patches?
Check out this issue facebook/react-native#33557.
The removed types will temporarily be readded in react-native 0.71 (which our mapbox version currently does not support). See facebook/react-native@b966d29
Also most of the new arch stuff will be removed in later versions.
What has changed in jest?
The iOS update is still missing. @LeandraH or @f1sh1918 ? :) https://react-native-community.github.io/upgrade-helper/?from=0.67.5&to=0.70.6 (maybe in a separate branch for a better overview?)