Page MenuHomePhabricator

D11867.diff
No OneTemporary

D11867.diff

diff --git a/native/account/registration/registration-terms.react.js b/native/account/registration/registration-terms.react.js
--- a/native/account/registration/registration-terms.react.js
+++ b/native/account/registration/registration-terms.react.js
@@ -18,6 +18,7 @@
AvatarData,
} from './registration-types.js';
import commSwooshSource from '../../img/comm-swoosh.png';
+import { logInActionType } from '../../navigation/action-types.js';
import type { NavigationRoute } from '../../navigation/route-names.js';
import { useStyles } from '../../themes/colors.js';
@@ -77,7 +78,9 @@
headerLeft: null,
});
const removeListener = navigation.addListener('beforeRemove', e => {
- e.preventDefault();
+ if (e.data.action.type !== logInActionType) {
+ e.preventDefault();
+ }
});
return () => {
navigation.setOptions({

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 3:39 PM (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607988
Default Alt Text
D11867.diff (880 B)

Event Timeline