-
Notifications
You must be signed in to change notification settings - Fork 790
Update Docs for native navigation #11469
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
Open
saurabhchavan1711
wants to merge
1
commit into
mendix:development
Choose a base branch
from
saurabhchavan1711:moo/MOO-2317-Update-doc-for-native-navigation
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
content/en/docs/howto/mobile/native-mobile/native-navigation.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| title: "Enabling native navigation" | ||
| linktitle: "Enable native navigation" | ||
| url: /howto/mobile/native-navigation/ | ||
| weight: 71 | ||
| description: Things you need to know before enabling native navigation. | ||
| --- | ||
|
|
||
| ## Introducing Native Navigation in SP 11 | ||
|
|
||
| With the release of Studio Pro 11, we are excited to introduce a completely revamped native navigation system for all apps. This fundamental change moves navigation from a JavaScript-based implementation to the underlying native platform APIs, delivering significant improvements in performance, user experience, and memory management. | ||
|
|
||
| ## Key Improvements | ||
|
|
||
| By switching to native navigation, you will immediately benefit from: | ||
|
|
||
| * **🚀 Smoother, Truly Native Animations** | ||
| Transitions and gestures are no longer managed on the JS thread. Instead, they use the native `UINavigationController` on iOS and `Fragment` APIs on Android for completely fluid, jank-free animations. | ||
|
|
||
| * **🧠 Lower Memory Usage** | ||
| Screens are now mounted and unmounted by the native OS, which is more efficient and lightens the load on the JavaScript thread, resulting in a more responsive app. | ||
|
|
||
| * **📱 Authentic Platform UX** | ||
| Get the user experience your users expect right out of the box. This includes default gestures like the back-swipe on iOS, large header titles, and native Android transition animations without any extra configuration. | ||
|
|
||
| * **⚙️ Optimized View Hierarchy** | ||
| The new navigation system reduces the complexity and depth of the view hierarchy. This not only improves performance but also enhances compatibility with automation tools like Appium that can have restrictions on view depth. | ||
|
|
||
| ## Breaking Changes & Customization Limits | ||
|
|
||
| To achieve these native performance gains, we can no longer support certain JavaScript-based customizations. The following `stack.Navigator` properties have been deprecated and will not work with the new native navigation system. | ||
|
|
||
| * **`headerMode`** | ||
| This property, used to make headers float across screens on iOS, is no longer supported. The native stack handles header rendering on a per-screen basis according to platform conventions. | ||
|
|
||
| * **`headerStyleInterpolator`** | ||
| Custom JavaScript animations for the header during screen transitions are not available. The new system relies exclusively on native platform animations. | ||
|
|
||
| * **`headerTitleContainerStyle`** | ||
| Styling the container of the header title is no longer possible. This change simplifies the API and ensures headers adhere more closely to native design guidelines. | ||
|
|
||
| * **`headerBackAllowFontScaling`** | ||
| This option to control font scaling for the back button's title is not supported. | ||
|
|
||
| * **`headerBackImage`** | ||
| Providing a custom component for the back button *image* is deprecated. To customize the entire back button (including its icon and label), use the `headerBack` prop instead. | ||
|
|
||
| > **⚠️ Known Issue: Unclickable Area Below Header** | ||
| > | ||
| > Please be aware of a known issue where the top **10-15 pixels** of the screen content directly below the header may be unresponsive to touch events. | ||
| > | ||
| > **Cause:** This occurs because the native header has a higher view hierarchy (z-index) than the JavaScript-based UI elements rendered below it. | ||
| > | ||
| > **Workaround:** Most apps already include top padding on their pages, which avoids this issue. We recommend ensuring your page content has adequate padding below the header. | ||
| > | ||
| > **Solution:** We are developing a native button widget that will resolve this edge case. These will be released in a future update. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'll take a look at the title