-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[IMPROVEMENT] Add loading message on long running tasks #1798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2f6a165
[IMPROVEMENT] Add message & loading to AuthLoadingView
djorkaeffalexandre c3f1573
[I18n] Add translations
djorkaeffalexandre 0eaad31
[FIX] Remove loading of LanguageView
djorkaeffalexandre c497cb1
[IMPROVEMENT] Shows loading for at least 200ms
djorkaeffalexandre 9af50bd
[IMPROVEMENT] Add message when logout
djorkaeffalexandre 758d910
Merge branch 'develop' into improvement.message-loading
djorkaeffalexandre 55ac773
[IMPROVEMENT] Messages
djorkaeffalexandre 0ed64cc
Merge branch 'improvement.message-loading' of https://github.com/Rock…
djorkaeffalexandre 9c06b5e
Merge branch 'develop' into improvement.message-loading
diegolmello 225fde1
200s -> 300ms on change language
diegolmello 3b2b0fd
Apply suggestions from code review
diegolmello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,10 +1,40 @@ | ||
| import React from 'react'; | ||
| import { | ||
| View, Text, StyleSheet, ActivityIndicator | ||
| } from 'react-native'; | ||
|
|
||
| import I18n from '../i18n'; | ||
| import StatusBar from '../containers/StatusBar'; | ||
| import { withTheme } from '../theme'; | ||
| import { themes } from '../constants/colors'; | ||
|
|
||
| export default React.memo(withTheme(({ theme }) => ( | ||
| <> | ||
| <StatusBar theme={theme} /> | ||
| </> | ||
| ))); | ||
| import sharedStyles from './Styles'; | ||
|
|
||
| const styles = StyleSheet.create({ | ||
| container: { | ||
| flex: 1, | ||
| justifyContent: 'center', | ||
| alignItems: 'center' | ||
| }, | ||
| text: { | ||
| fontSize: 16, | ||
| paddingTop: 10, | ||
| ...sharedStyles.textRegular, | ||
| ...sharedStyles.textAlignCenter | ||
| } | ||
| }); | ||
|
|
||
| export default React.memo(withTheme(({ theme, navigation }) => { | ||
| const text = navigation.getParam('text'); | ||
| return ( | ||
| <View style={[styles.container, { backgroundColor: themes[theme].backgroundColor }]}> | ||
| <StatusBar theme={theme} /> | ||
| {text && ( | ||
| <> | ||
| <ActivityIndicator color={themes[theme].auxiliaryText} size='large' /> | ||
| <Text style={[styles.text, { color: themes[theme].bodyText }]}>{`${ text }.\n${ I18n.t('Please_wait') }`}</Text> | ||
| </> | ||
| )} | ||
| </View> | ||
| ); | ||
| })); |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.