-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UrlSelect trigger value reset for non expo router projects (#873)
This PR changes the UrlBar behaviour in projects not using Expo Router navigation. When the user intends to close the preview by pressing the goHome button (or reload), the UrlSelect's trigger value needs to be reset to a placeholder ("/"). Additionally, this update disables the `goBack` button for projects that do not use Expo Router. ### How Has This Been Tested: - Tested on expo-router and react-native-76 apps. |Before|After| |-|-| |<video src="https://github.com/user-attachments/assets/3fa5b50a-c5c3-4f70-b184-f7a1853f101b" />|<video src="https://github.com/user-attachments/assets/051577d3-5f43-454c-92b8-eefdd1d37426" />|
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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