Skip to content

Commit

Permalink
Change ActivityIndicator color on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Jun 11, 2020
1 parent b9e45d1 commit 278a419
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/SettingListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ const SettingListItem: React.FunctionComponent<ISettingListItemProps> = (
</View>
<View style={styles.right}>
{loading ? (
<ActivityIndicator animating />
<ActivityIndicator
animating
color={Platform.OS === 'android' ? Colors.theme : undefined}
/>
) : variant === 'switch' ? (
<Switch
disabled={switchDisabled}
Expand Down
1 change: 1 addition & 0 deletions src/screens/AssignmentSubmitScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ const AssignmentSubmitScreen: INavigationScreen<IAssignmentSubmitScreenProps> =
<ActivityIndicator
style={{marginHorizontal: 16}}
animating={uploading}
color={Platform.OS === 'android' ? Colors.theme : undefined}
/>
{uploading && (
<ProgressBar
Expand Down
6 changes: 5 additions & 1 deletion src/screens/FirebaseScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,11 @@ const FirebaseScreen: INavigationScreen = (props) => {
onPress={handleLogout}>
{getTranslation('logout')}
</TextButton>
<ActivityIndicator style={{margin: 10}} animating={loading} />
<ActivityIndicator
style={{margin: 10}}
animating={loading}
color={Platform.OS === 'android' ? Colors.theme : undefined}
/>
</View>
<Text
style={[
Expand Down
6 changes: 5 additions & 1 deletion src/screens/LoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ const LoginScreen: INavigationScreen = (props) => {
onPress={onLoginButtonPress}>
{getTranslation('login')}
</RaisedButton>
<ActivityIndicator style={{margin: 10}} animating={loading} />
<ActivityIndicator
style={{margin: 10}}
animating={loading}
color={Platform.OS === 'android' ? Colors.theme : undefined}
/>
</View>
<Text
style={[
Expand Down

0 comments on commit 278a419

Please sign in to comment.