Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3530017
D11849.id39714.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
945 B
Referenced Files
None
Subscribers
None
D11849.id39714.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
@@ -67,6 +67,27 @@
}
}, [register, userSelections, clearCachedSelections]);
+ const { navigation } = props;
+ React.useEffect(() => {
+ if (!registrationInProgress) {
+ return undefined;
+ }
+ navigation.setOptions({
+ gestureEnabled: false,
+ headerLeft: null,
+ });
+ const removeListener = navigation.addListener('beforeRemove', e => {
+ e.preventDefault();
+ });
+ return () => {
+ navigation.setOptions({
+ gestureEnabled: true,
+ headerLeft: undefined,
+ });
+ removeListener();
+ };
+ }, [navigation, registrationInProgress]);
+
const styles = useStyles(unboundStyles);
const termsNotice = (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 10:54 PM (11 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703368
Default Alt Text
D11849.id39714.diff (945 B)
Attached To
Mode
D11849: [native] Prevent user from leaving RegistrationTerms during registration request
Attached
Detach File
Event Timeline
Log In to Comment