Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3396950
D11867.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
880 B
Referenced Files
None
Subscribers
None
D11867.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11867: [native] Allow LOG_IN ReactNav action to dismiss RegistrationTerms
Attached
Detach File
Event Timeline
Log In to Comment