-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: React IonTab do not display in mobile client #27705
Comments
Thanks for the report. What version of the Chromium webview is running on the device that shows the white screen? You can find by this logging |
the user agent is 'Mozilla/5.0 (Linux; Android 13; sdk_gphone64_arm64 Build/TE1A.220922.028; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.71 Mobile Safari/537.36' |
Change IonRouterOutlet to Switch In App component, it display success。 so can not use IonRouterOutlet in root Component or it is a bug? It seems that this point was not mentioned in guide docs.. |
It's hard to say what the issue is without being able to reproduce the issue on my end. Can you provide a GitHub repo with the code required to reproduce the white screen? |
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
https://github.com/TheSoils/ion-tab-test |
Thanks for the reproduction. In |
As noted in ionic-team/ionic-framework#27705, it turns out that IonTabs in Ionic React automatically renders IonPage for you, so adding duplicate IonPage instances can cause issues. This behavior is not aligned with Vue, so we should look into making this consistent in the future. For now, I've updated the docs to make this clear.
Yes, good catch! I opened a PR to fix this on the docs: ionic-team/ionic-docs#3012. I am going to close this since the issue is resolved, but let me know if you have questions. More detail on why this happens for those interested: This component renders a PageMananger:
|
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
I want to use tab in my app, and follow the content "working with tabs" in the doc "react navigation" , it is success in broswer, but get blank in ios and android mobile phone




Expected Behavior
success display in mobile client
Steps to Reproduce
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 7.1.1 (/Users/wyman/.nvm/versions/node/v16.19.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 7.1.0
Capacitor:
Capacitor CLI : 5.0.5
@capacitor/android : 5.0.5
@capacitor/core : 5.0.5
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
NodeJS : v16.19.0 (/Users/wyman/.nvm/versions/node/v16.19.0/bin/node)
npm : 9.6.1
OS : macOS Unknown
Additional Information
if change to in , it display success
The text was updated successfully, but these errors were encountered: