-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Need to support iPhone 12 status bar height #3720
Comments
Hi @HackingGate . |
For me the solution is not working, as well. |
@shiqkuangsan |
thankU, it is resolved |
@HackingGate I installed the latest version of react-native-screen (2.15.0) but the problem is still there. |
the problem occured because the version of react-navigation-stack in router-flux's dependency is old |
@shiqkuangsan I solved the problem by forcing react-native-router-flux to use "react-navigation-tabs": "2.10.1", but still on ipad pro it doesn't work. |
thank U, I'll try your way and I'm gonna take a try to use router-flux v5 alpha ^_^ |
yes. you're right !! |
Same issue , the bottom bar work with the "react-navigation-tabs": "2.10.1" but the header is still broken.. did you find a fix ? |
@psppro26 try forcing to use "react-native-screens": "^ 2.15.0" |
@Ilario17 im already on version "react-native-screens": "^2.16.1" ? i must downgrade ? |
@psppro26 did you downgrade ? and if yes, did it work? |
|
How can i update react-navigation to 5.x ? I have same problem please help me. |
add this to your package.json "resolutions": {
"react-native-router-flux/**/react-navigation-stack": "^2.10.2",
"react-native-router-flux/**/react-navigation-tabs": "^2.10.1"
}, |
Has this been solved? |
Would love to see a fix as well. Tried everything above with npm and npm-force-resolutions.. did not work :( |
For users of RNRF v4.2.0Use Xcode 12.0 or lower to publish your app. You app will use Display Zoom on iPhone 12 series. No extra test needed. If you don't like Display Zoom. Use my workaround. Here's a complete {
"name": "Example",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"react": "16.13.1",
"react-native": "0.63.0",
"react-native-button": "^3.0.1",
"react-native-gesture-handler": "^1.6.1",
"react-native-message-bar": "^2.0.10",
"react-native-reanimated": "^1.9.0",
"react-native-router-flux": "^4.2.0",
"react-native-safe-area-context": "^3.2.0",
"react-native-screens": "^2.18.1"
},
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/runtime": "^7.10.4",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.1.0",
"eslint": "^7.4.0",
"jest": "^26.1.0",
"metro-react-native-babel-preset": "^0.60.0",
"react-test-renderer": "16.13.1"
},
"resolutions": {
"react-native-router-flux/**/react-navigation-stack": "^2.10.2",
"react-native-router-flux/**/react-navigation-tabs": "^2.10.1"
},
"jest": {
"preset": "react-native"
}
} For maintainers and contributorsFix this issue could be a pain. My suggestion is to develop/test/release RNRF v5 instead of spending time on this issue. |
@HackingGate thanks! I've tried numerous ways suggested in React Navigation GitHub (react-navigation/react-navigation#8972 (comment)), but finally used your setup. Please check 4.3.0 version |
@aksonov |
Should be fixed with 4.3.0 |
Version
Tell us which versions you are using:
Expected behaviour
All notch iPhone use 44 height before iPhone 12. On iPhone 12/12 Pro/12 Pro Max it's 47. On iPhone 12 mini it's 50.
Actual behaviour
Status bar height became 20 on all iPhone 12 series.
Workaround I found
Upgrade react-navigation-stack to the latest 2.10.0 will fix.
Or add this to your project's package.json file.
So far I found this workaround will break header and cause
Actions.reset()
to have a transition in my project.The text was updated successfully, but these errors were encountered: