MM-63571 Android Sentry Error Checks (#8773)

* MM-63571 Android Sentry Error Checks

* popTo the stack and update the props
This commit is contained in:
Rajat Dabade 2025-04-16 17:31:02 +05:30 committed by GitHub
parent b0d188872a
commit 0ca03da161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -499,6 +499,11 @@ export function goToScreen(name: AvailableScreens, title: string, passProps = {}
DeviceEventEmitter.emit(Events.TAB_BAR_VISIBLE, false);
if (NavigationStore.getScreensInStack().includes(name)) {
Navigation.updateProps(name, passProps);
return Navigation.popTo(name, merge(defaultOptions, options));
}
return Navigation.push(componentId, {
component: {
id: name,

View file

@ -135,6 +135,9 @@ export function getRoundedTime(value: Moment) {
export function isTablet() {
const result: SplitViewResult = RNUtils.isRunningInSplitView();
if (!result) {
return false;
}
return result.isTablet && !result.isSplit;
}