-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update WhatsNewModal to parse template
- Loading branch information
Showing
2 changed files
with
170 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,10 @@ | ||
import { strings } from '../../../../locales/i18n'; | ||
/* eslint-disable import/prefer-default-export */ | ||
import { WhatsNew } from './types'; | ||
|
||
export const whatsNew = [ | ||
{ | ||
// All users that have <1.0.7 and are updating to >=1.0.7 should see | ||
onlyUpdates: true, // Only users who updated the app will see this, not newly installs | ||
maxLastAppVersion: '1.0.7', // Only users who had a previous version <1.0.7 version will see this | ||
minAppVersion: '1.0.7', // Only users who updated to a version >= 1.0.7 will see this | ||
features: [ | ||
{ | ||
title: strings('whats_new.feature_security_settings_title'), | ||
text: strings('whats_new.feature_security_settings_text'), | ||
buttonText: strings('whats_new.feature_security_settings_button'), | ||
buttonPress: (props) => | ||
props.navigation.navigate('SettingsView', { | ||
screen: 'SettingsFlow', | ||
params: { screen: 'SecuritySettings' }, | ||
}), | ||
image: require('../../../images/whats-new-security.png'), // eslint-disable-line | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export default whatsNew; | ||
export const whatsNew: WhatsNew = { | ||
// All users that have <1.0.7 and are updating to >=1.0.7 should see | ||
onlyUpdates: true, // Only users who updated the app will see this, not newly installs | ||
maxLastAppVersion: '1.0.7', // Only users who had a previous version <1.0.7 version will see this | ||
minAppVersion: '1.0.7', // Only users who updated to a version >= 1.0.7 will see this | ||
slides: [[], [], []], | ||
}; |