From f905d9bf5a3c83aaadefd24766b19e2ecbf5a6ab Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Mon, 12 Apr 2021 11:53:39 -0400 Subject: [PATCH 01/21] Move login strings to translation file --- app/components/Views/Login/index.js | 12 +++++------- locales/languages/en.json | 7 ++++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/app/components/Views/Login/index.js b/app/components/Views/Login/index.js index 7243b461cda..c97ba2193f2 100644 --- a/app/components/Views/Login/index.js +++ b/app/components/Views/Login/index.js @@ -183,13 +183,11 @@ const styles = StyleSheet.create({ } }); -/* TODO: we should have translation strings for these */ -const PASSCODE_NOT_SET_ERROR = 'Error: Passcode not set.'; -const WRONG_PASSWORD_ERROR = 'Error: Decrypt failed'; -const WRONG_PASSWORD_ERROR_ANDROID = 'Error: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT'; -const VAULT_ERROR = 'Error: Cannot unlock without a previous vault.'; -const CLEAN_VAULT_ERROR = - 'MetaMask encountered an error due to reaching a storage limit. The local data has been corrupted. Please reinstall MetaMask and restore with your seed phrase.'; +const PASSCODE_NOT_SET_ERROR = strings('login.passcode_not_set_error'); +const WRONG_PASSWORD_ERROR = strings('login.wrong_password_error'); +const WRONG_PASSWORD_ERROR_ANDROID = strings('login.wrong_password_error_android'); +const VAULT_ERROR = strings('login.vault_error'); +const CLEAN_VAULT_ERROR = strings('login.clean_vault_error'); /** * View where returning users can authenticate diff --git a/locales/languages/en.json b/locales/languages/en.json index 2067e452115..e23e4fbb308 100644 --- a/locales/languages/en.json +++ b/locales/languages/en.json @@ -142,7 +142,12 @@ "you_can_only": "You can ONLY recover this wallet with your ", "recovery_phrase": "Recovery Phrase ", "metamask_does_not": "MetaMask does not have your recovery phrase.", - "i_understand": "I understand, continue" + "i_understand": "I understand, continue", + "passcode_not_set_error": "Error: Passcode not set.", + "wrong_password_error": "Error: Decrypt failed", + "wrong_password_error_android": "Error: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT", + "vault_error": "Error: Cannot unlock without a previous vault.", + "clean_vault_error": "MetaMask encountered an error due to reaching a storage limit. The local data has been corrupted. Please reinstall MetaMask and restore with your seed phrase." }, "enter_password": { "title": "Enter your password", From e3ab73eee31eb55d30f98662239283765fbb07fd Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Mon, 12 Apr 2021 12:03:15 -0400 Subject: [PATCH 02/21] replace seed phrase with Secret Recovery phrase --- locales/languages/en.json | 98 +++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/locales/languages/en.json b/locales/languages/en.json index e23e4fbb308..3211a7521ee 100644 --- a/locales/languages/en.json +++ b/locales/languages/en.json @@ -43,7 +43,7 @@ "warning_text_1": "Your current wallet and accounts will be", "warning_text_2": "removed", "warning_text_3": "if you proceed.", - "warning_text_4": "You can ONLY recover them with your wallet’s seed phrase. MetaMask cannot help you recover it.", + "warning_text_4": "You can ONLY recover them with your wallet’s Secret Recovery phrase. MetaMask cannot help you recover it.", "warning_proceed": "Remove wallet & proceed", "warning_cancel": "Cancel", "step1": "Wallet setup", @@ -123,7 +123,7 @@ "sync_help_step_four": "4. Scan the QR Code to start syncing", "sync_from_browser_extension_button": "Sync with MetaMask extension", "or": "OR", - "import_from_seed_button": "Import using seed phrase" + "import_from_seed_button": "Import using Secret Recovery phrase" }, "login": { "title": "Welcome Back!", @@ -147,7 +147,7 @@ "wrong_password_error": "Error: Decrypt failed", "wrong_password_error_android": "Error: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT", "vault_error": "Error: Cannot unlock without a previous vault.", - "clean_vault_error": "MetaMask encountered an error due to reaching a storage limit. The local data has been corrupted. Please reinstall MetaMask and restore with your seed phrase." + "clean_vault_error": "MetaMask encountered an error due to reaching a storage limit. The local data has been corrupted. Please reinstall MetaMask and restore with your Secret Recovery phrase." }, "enter_password": { "title": "Enter your password", @@ -162,7 +162,7 @@ "password": "New Password", "confirm_password": "Confirm password", "create_button": "Create password", - "import_with_seed_phrase": "Import with seed phrase", + "import_with_seed_phrase": "Import with Secret Recovery phrase", "password_length_error": "The password needs to be at least 8 characters long", "password_dont_match": "Passwords don't match", "password_strength": "Password strength:", @@ -179,7 +179,7 @@ "i_understand": "I understand that MetaMask cannot recover this password for me.", "learn_more": "Learn more.", "secure": "Secure wallet", - "confirm": "Confirm seed phrase" + "confirm": "Confirm Secret Recovery phrase" }, "reset_password": { "title": "Change password", @@ -187,7 +187,7 @@ "password": "New Password", "confirm_password": "Confirm password", "reset_button": "Reset password", - "import_with_seed_phrase": "Import with seed phrase", + "import_with_seed_phrase": "Import with Secret Recovery phrase", "password_length_error": "The password needs to be at least 8 characters long", "password_dont_match": "Passwords don't match", "password_strength": "Password strength:", @@ -204,13 +204,13 @@ "i_understand": "I understand that MetaMask cannot recover this password for me.", "learn_more": "Learn more.", "secure": "Secure wallet", - "confirm": "Confirm seed phrase", + "confirm": "Confirm Secret Recovery phrase", "password_updated": "Password updated", "successfully_changed": "Your password has been successfully changed" }, "import_from_seed": { "title": "Import from seed", - "seed_phrase_placeholder": "Enter your seed phrase here", + "seed_phrase_placeholder": "Enter your Secret Recovery phrase here", "new_password": "New Password", "confirm_password": "Confirm password", "import_button": "IMPORT", @@ -218,10 +218,10 @@ "password_length_error": "The password needs to be at least 8 characters long", "password_dont_match": "Passwords don't match", "seed_phrase_requirements": "Seed phrases contain 12, 15, 18, 21, or 24 words", - "invalid_seed_phrase": "Invalid seed phrase", + "invalid_seed_phrase": "Invalid Secret Recovery phrase", "error": "Error", "invalid_qr_code_title": "Invalid QR Code", - "invalid_qr_code_message": "This QR code doesn't represent a valid seed phrase" + "invalid_qr_code_message": "This QR code doesn't represent a valid Secret Recovery phrase" }, "bottom_tab_bar": { "dapps": "ÐApps", @@ -294,7 +294,7 @@ "private_key_detected": "Private key detected", "do_you_want_to_import_this_account": "Do you want to import this account?", "error": "Error", - "logout_to_import_seed": "You need to log out first in order to import a seed phrase.", + "logout_to_import_seed": "You need to log out first in order to import a Secret Recovery phrase.", "ready_to_explore": "Ready to start exploring blockchain applications?", "unable_to_load": "Unable to load balance" }, @@ -425,7 +425,7 @@ "clear": "CLEAR", "protect_cta": "Protect", "protect_title": "Protect your wallet", - "protect_desc": "Protect your wallet by saving your seed phrase in various places like on a piece of paper, password manager and/or the cloud.", + "protect_desc": "Protect your wallet by saving your Secret Recovery phrase in various places like on a piece of paper, password manager and/or the cloud.", "seedphrase_not_backed_up": "Important! Seed phrase not backed up", "seedphrase_backed_up": "Seed phrase backed up", "back_up_now": "Back up now", @@ -449,7 +449,7 @@ "contacts_desc": "Add, edit, remove, and manage your accounts", "security_title": "Security & Privacy", "back": "Back", - "security_desc": "Privacy settings, MetaMetrics, private key and wallet seed phrase", + "security_desc": "Privacy settings, MetaMetrics, private key and wallet Secret Recovery phrase", "networks_title": "Networks", "networks_desc": "Add and edit custom RPC networks", "network_name_label": "Network Name", @@ -521,18 +521,18 @@ "contact_us": "Contact Us" }, "reveal_credential": { - "seed_phrase_title": "Reveal seed phrase", + "seed_phrase_title": "Reveal Secret Recovery phrase", "private_key_title": "Show private key", "show_private_key": "Show private key", "private_key_title_for_account": "Show private key for \"{{accountName}}\"", "cancel": "Cancel", "confirm": "Next", - "seed_phrase_explanation": "If you ever change browsers or move computers, you will need this seed phrase to access your accounts. Save them somewhere safe and secret.", + "seed_phrase_explanation": "If you ever change browsers or move computers, you will need this Secret Recovery phrase to access your accounts. Save them somewhere safe and secret.", "private_key_explanation": "Save it somewhere safe and secret.", "private_key_warning": "This is the private key for the current selected account: {{accountName}}. Never disclose this key. Anyone with your private key can fully control your account, including transferring away any of your funds.", "seed_phrase_warning_explanation": "DO NOT share this phrase with anyone! These words can be used to steal all your accounts.", "private_key_warning_explanation": "Never disclose this key. Anyone with your private key can fully control your account, including transferring away any of your funds.", - "seed_phrase": "Your seed phrase", + "seed_phrase": "Your Secret Recovery phrase", "private_key": "Your private key", "copy_to_clipboard": "Copy to clipboard", "enter_password": "Enter password to continue", @@ -882,13 +882,13 @@ "outdated_qr_code": "Expired QR Code", "outdated_qr_code_desc": "This seems to be an expired QR code! Please try scanning a new one", "something_wrong": "Ooops! Something went wrong...", - "something_wrong_desc": "We are having issues while trying to sync your wallet. Please try again later or import your wallet using your seed phrase", + "something_wrong_desc": "We are having issues while trying to sync your wallet. Please try again later or import your wallet using your Secret Recovery phrase", "allow_biometrics_title": "Do you want to enable {{biometrics}}?", "allow_biometrics_desc": "You can use {{biometrics}} to authenticate on MetaMask" }, "sync_with_extension_success": { "title": "Wallet imported", - "sync_complete_1": "Just remember, MetaMask cannot recover your seed phrase should you lose it. You can find the seed phrase in", + "sync_complete_1": "Just remember, MetaMask cannot recover your Secret Recovery phrase should you lose it. You can find the Secret Recovery phrase in", "sync_complete_2": "Settings > Security & Privacy", "button_continue": "Done", "password_tip": "The password to unlock your mobile wallet is the same one you set for the extension.", @@ -972,7 +972,7 @@ }, "import_private_key": { "title": "Import Account", - "description_one": "Imported accounts are viewable in your wallet but are not recoverable with your MetaMask seed phrase.", + "description_one": "Imported accounts are viewable in your wallet but are not recoverable with your MetaMask Secret Recovery phrase.", "learn_more_here": "Learn more about imported accounts here.", "subtitle": "Paste your private key string", "cta_text": "IMPORT", @@ -998,7 +998,7 @@ "step_1": "Step 1:", "step_1_description": "Create password", "step_2": "Step 2:", - "step_2_description": "Save wallet seed phrase", + "step_2_description": "Save wallet Secret Recovery phrase", "info_text_1": "Take a few moments to finish setting up your MetaMask wallet.", "info_text_2": "This will ensure only you can access your funds and will let you recover your wallet if you lose your device", "cta_text": "Create Password", @@ -1009,7 +1009,7 @@ "remind_me_later_subtext": "(Not recommended)", "title": "Secure your wallet", "info_text_1_1": "Don’t risk losing your funds. Protect your wallet by saving your", - "info_text_1_2": "seed phrase", + "info_text_1_2": "Secret Recovery phrase", "info_text_1_3": "in a place you trust.", "info_text_1_4": "It’s the only way to recover your wallet if you get locked out of the app or get a new device.", "cta_text": "Start", @@ -1017,21 +1017,21 @@ "skip_button_cancel": "Secure now", "skip_button_confirm": "Skip", "skip_title": "Skip account security?", - "skip_check": "I understand that if I lose my seed phrase I will not be able to access my wallet.", + "skip_check": "I understand that if I lose my Secret Recovery phrase I will not be able to access my wallet.", "what_is_seedphrase_title": "What is a ‘Seed phrase’", - "what_is_seedphrase_text_1": "A seed phrase is a set of twelve words that contains all the information about your wallet, including your funds. It’s like a secret code used to access your entire wallet.", - "what_is_seedphrase_text_2": "You must keep your seed phrase secret and safe. If someone gets your seed phrase, they’ll gain control over your accounts.", + "what_is_seedphrase_text_1": "A Secret Recovery phrase is a set of twelve words that contains all the information about your wallet, including your funds. It’s like a secret code used to access your entire wallet.", + "what_is_seedphrase_text_2": "You must keep your Secret Recovery phrase secret and safe. If someone gets your Secret Recovery phrase, they’ll gain control over your accounts.", "what_is_seedphrase_text_3": "Save it in a place where only you can access it. If you lose it, not even MetaMask can help you recover it." }, "account_backup_step_1B": { "title": "Secure your wallet", "subtitle_1": "Secure your wallet's", - "subtitle_2": "seed phrase.", + "subtitle_2": "Secret Recovery phrase.", "cta_text": "Start", "learn_more": "Learn More", "why_important": "Why is it important?", "manual_title": "Manual", - "manual_subtitle": "Write down your seed phrase on a piece of paper and store in a safe place.", + "manual_subtitle": "Write down your Secret Recovery phrase on a piece of paper and store in a safe place.", "manual_security": "Security level: Very strong", "risks_title": "Risks are:", "risks_1": "You lose it", @@ -1043,16 +1043,16 @@ "tips_2": "Store in a safe", "tips_3": "Store in multiple secret places", "why_secure_title": "Protect your wallet", - "why_secure_1": "Don’t risk losing your funds. Protect your wallet by saving your seed phrase in a place you trust.", + "why_secure_1": "Don’t risk losing your funds. Protect your wallet by saving your Secret Recovery phrase in a place you trust.", "why_secure_2": " It’s the only way to recover your wallet if you get locked out of the app or get a new device." }, "account_backup_step_2": { "cancel_backup_title": "Cancel Backup", - "cancel_backup_message": "We highly recommend you save your seed phrase in order to restore your wallet.", + "cancel_backup_message": "We highly recommend you save your Secret Recovery phrase in order to restore your wallet.", "cancel_backup_ok": "Yes, I'll take the risk", "cancel_backup_no": "No, back up Seed Phrase", "title": "Grab a pen and paper", - "info": "Next step is to write your seed phrase down.", + "info": "Next step is to write your Secret Recovery phrase down.", "info_2_1": "You will be asked to ", "info_2_2": "re-enter", "info_2_3": " it for confirmation", @@ -1060,20 +1060,20 @@ }, "account_backup_step_3": { "cancel_backup_title": "Cancel Backup", - "cancel_backup_message": "We highly recommend you save your seed phrase in order to restore your wallet.", + "cancel_backup_message": "We highly recommend you save your Secret Recovery phrase in order to restore your wallet.", "cancel_backup_ok": "Yes, I'll take the risk", "cancel_backup_no": "No, back up Seed Phrase", "title": "Is anyone watching?", - "info_text": "Make sure no other human or robot is watching your screen. If your seed phrase is copied, it can be used on other devices to steal your funds", + "info_text": "Make sure no other human or robot is watching your screen. If your Secret Recovery phrase is copied, it can be used on other devices to steal your funds", "cta_text": "NO ONE'S WATCHING ME" }, "account_backup_step_4": { "cancel_backup_title": "Cancel Backup", - "cancel_backup_message": "We highly recommend you save your seed phrase in order to restore your wallet.", + "cancel_backup_message": "We highly recommend you save your Secret Recovery phrase in order to restore your wallet.", "cancel_backup_ok": "Yes, I'll take the risk", "cancel_backup_no": "No, back up Seed Phrase", "back": "Back", - "title": "Your seed phrase", + "title": "Your Secret Recovery phrase", "info_text_1": "Carefully write down these words on paper. Their order matters.", "info_text_2": "You'll be asked to re-enter it on the next screen", "cta_text": "I'VE COPIED THE PHRASE", @@ -1085,7 +1085,7 @@ "error_title": "Oops!", "error_message": "The order of the words is incorrect. Please make sure you wrote it down correctly and go to the previous screen if it is necessary", "back": "Back", - "title": "Confirm seed phrase", + "title": "Confirm Secret Recovery phrase", "info_text": "Insert each word in the order it was presented to you on the previous screen.", "cta_text": "CONFIRM PHRASE", "modal_title": "Seed phrase confirmed!", @@ -1094,8 +1094,8 @@ }, "account_backup_step_6": { "title": "Security Tips", - "info_text": "MetaMask cannot recover your seed phrase if you lose it", - "tip_1": "Keep multiple backups of your seed phrase", + "info_text": "MetaMask cannot recover your Secret Recovery phrase if you lose it", + "tip_1": "Keep multiple backups of your Secret Recovery phrase", "tip_2": "Store the phrase in a trusted password manager and paper backups in a safe place", "tip_3": "Never share this phrase with anyone", "disclaimer": "* You can find your seedphrase if you go to ", @@ -1109,13 +1109,13 @@ "manual_backup": { "progressOne": "Create Password", "progressTwo": "Secure wallet", - "progressThree": "Confirm seed phrase" + "progressThree": "Confirm Secret Recovery phrase" }, "manual_backup_step_1": { - "action": "Write down your seed phrase", - "info": "This is your seed phrase. Write it down on a paper and keep it in a safe place. You'll be asked to re-enter this phrase (in order) on the next step.", + "action": "Write down your Secret Recovery phrase", + "info": "This is your Secret Recovery phrase. Write it down on a paper and keep it in a safe place. You'll be asked to re-enter this phrase (in order) on the next step.", "continue": "Continue", - "reveal": "Tap to reveal your seed phrase", + "reveal": "Tap to reveal your Secret Recovery phrase", "watching": "Make sure no one is watching your screen.", "view": "View", "confirm_password": "Confirm your password", @@ -1123,21 +1123,21 @@ "confirm": "CONFIRM" }, "manual_backup_step_2": { - "action": "Confirm seed phrase", + "action": "Confirm Secret Recovery phrase", "info": "Select each word in the order it was presented to you.", "complete": "Complete Backup", "success": "Success" }, "manual_backup_step_3": { "congratulations": "Congratulations", - "success": "You’ve successfully protected your wallet. Remember to keep your seed phrase safe, it's your responsibility!", + "success": "You’ve successfully protected your wallet. Remember to keep your Secret Recovery phrase safe, it's your responsibility!", "hint": "Leave yourself a hint?", "recover": "MetaMask cannot recover your wallet should you lose it. You can find your seedphrase in Settings > Security & Privacy.", "learn": "Learn more", "done": "Done", "recovery_hint": "Recovery hint", "leave_hint": "Leave yourself a hint. Write the location / where you saved it to remind yourself how you can access it. This information does not leave your device.", - "no_seedphrase": "Do not use this to write your seed phrase.", + "no_seedphrase": "Do not use this to write your Secret Recovery phrase.", "example": "e.g. Mom's house", "save": "Save", "cancel": "Cancel" @@ -1193,8 +1193,8 @@ }, "protect_your_wallet_modal": { "title": "Protect your wallet", - "body_for_password": "Protect your wallet by setting a password and saving your seed phrase (required).", - "body_for_seedphrase": "Now that value was added to your wallet, protect your wallet by setting a password and saving your seed phrase (required).", + "body_for_password": "Protect your wallet by setting a password and saving your Secret Recovery phrase (required).", + "body_for_seedphrase": "Now that value was added to your wallet, protect your wallet by setting a password and saving your Secret Recovery phrase (required).", "button": "Protect wallet" }, "payment_request": { @@ -1491,7 +1491,7 @@ "title": "Protect your wallet", "top_button": "Protect wallet", "bottom_button": "Remind me later", - "text": "Don’t risk losing your funds. Protect your wallet by saving your seed phrase in a place you trust.", + "text": "Don’t risk losing your funds. Protect your wallet by saving your Secret Recovery phrase in a place you trust.", "text_bold": "It’s the only way to recover your wallet if you get locked out of the app or get a new device.", "action": "Learn more" }, @@ -1511,15 +1511,15 @@ "submit_ticket_6": "here.", "submit_ticket_7": "Please include the error message and the screenshot.", "save_seedphrase_1": "If this error persists,", - "save_seedphrase_2": "save your seed phrase", - "save_seedphrase_3": "& re-install the app. Note: you can NOT restore your wallet without your seed phrase.", + "save_seedphrase_2": "save your Secret Recovery phrase", + "save_seedphrase_3": "& re-install the app. Note: you can NOT restore your wallet without your Secret Recovery phrase.", "copied_clipboard": "Copied to clipboard", "ok": "OK" }, "whats_new": { "title": "See what's new", "feature_security_settings_title": "Improved security settings", - "feature_security_settings_text": "You can now change your MetaMask app password & review how to backup your wallet seed phrase from Settings > Security & Privacy.", + "feature_security_settings_text": "You can now change your MetaMask app password & review how to backup your wallet Secret Recovery phrase from Settings > Security & Privacy.", "feature_security_settings_button": "View in Settings" }, "invalid_network": { From 5053383edaeb079cfeb59e94a1a1344ee87985da Mon Sep 17 00:00:00 2001 From: Ricky Miller Date: Thu, 22 Apr 2021 11:58:15 -0400 Subject: [PATCH 03/21] Get an video working --- .../Views/Settings/SecuritySettings/index.js | 23 ++++++++++++++++ package.json | 1 + yarn.lock | 26 +++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/app/components/Views/Settings/SecuritySettings/index.js b/app/components/Views/Settings/SecuritySettings/index.js index 421a06bb3ad..8042acee574 100644 --- a/app/components/Views/Settings/SecuritySettings/index.js +++ b/app/components/Views/Settings/SecuritySettings/index.js @@ -39,12 +39,17 @@ import { BIOMETRY_CHOICE_DISABLED, SEED_PHRASE_HINTS } from '../../../../constants/storage'; +import Video /* TextTrackType */ from 'react-native-video'; import CookieManager from '@react-native-community/cookies'; import Icon from 'react-native-vector-icons/FontAwesome'; import HintModal from '../../../UI/HintModal'; import { trackErrorAsAnalytics } from '../../../../util/analyticsV2'; +const VIDEO_URI = 'https://www.w3schools.com/html/mov_bbb.mp4'; +// const VTT_URI = +// 'https://github.com/MetaMask/metamask-extension/blob/develop/app/images/videos/recovery-onboarding/subtitles-en.vtt'; + const isIos = Device.isIos(); const styles = StyleSheet.create({ @@ -141,7 +146,17 @@ const styles = StyleSheet.create({ }, viewHint: { padding: 5 + }, + videoContainer: { + width: '100%', + height: 200, + flex: 1, + backgroundColor: colors.red } + // video: { + // width: '100%', + // height: '100%' + // } }); const Heading = ({ children, first }) => ( @@ -536,6 +551,14 @@ class Settings extends PureComponent { ) : null} {strings('app_settings.protect_title')} + + {strings('app_settings.protect_desc')} Date: Wed, 28 Apr 2021 12:18:46 -0400 Subject: [PATCH 04/21] get video working off disk --- .../Views/Settings/SecuritySettings/index.js | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/app/components/Views/Settings/SecuritySettings/index.js b/app/components/Views/Settings/SecuritySettings/index.js index 8042acee574..54b83631444 100644 --- a/app/components/Views/Settings/SecuritySettings/index.js +++ b/app/components/Views/Settings/SecuritySettings/index.js @@ -39,16 +39,17 @@ import { BIOMETRY_CHOICE_DISABLED, SEED_PHRASE_HINTS } from '../../../../constants/storage'; -import Video /* TextTrackType */ from 'react-native-video'; +import Video, { TextTrackType } from 'react-native-video'; import CookieManager from '@react-native-community/cookies'; import Icon from 'react-native-vector-icons/FontAwesome'; import HintModal from '../../../UI/HintModal'; import { trackErrorAsAnalytics } from '../../../../util/analyticsV2'; -const VIDEO_URI = 'https://www.w3schools.com/html/mov_bbb.mp4'; -// const VTT_URI = -// 'https://github.com/MetaMask/metamask-extension/blob/develop/app/images/videos/recovery-onboarding/subtitles-en.vtt'; +// eslint-disable-next-line import/no-commonjs +const vid = require('../../../../../app/videos/mov_bbb.mp4'); +const VTT_URI = + 'https://github.com/MetaMask/metamask-extension/blob/develop/app/images/videos/recovery-onboarding/subtitles-en.vtt'; const isIos = Device.isIos(); @@ -150,13 +151,8 @@ const styles = StyleSheet.create({ videoContainer: { width: '100%', height: 200, - flex: 1, - backgroundColor: colors.red + flex: 1 } - // video: { - // width: '100%', - // height: '100%' - // } }); const Heading = ({ children, first }) => ( @@ -553,7 +549,19 @@ class Settings extends PureComponent {