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:
parent
b0d188872a
commit
0ca03da161
2 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue