Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Oct 19, 2022
1 parent 1962118 commit 2d8876f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/services/navigation/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const navDefaultOptions = (): Options => {
color: getThemeColor('bgColor'),
},
backButton: {
color: getThemeColor('textColor'),
color: Colors.primary,
},
noBorder: true,
elevation: 0,
rightButtonColor: getThemeColor('textColor'),
leftButtonColor: getThemeColor('textColor'),
rightButtonColor: Colors.primary,
leftButtonColor: Colors.primary,
title: {
color: getThemeColor('textColor'),
},
Expand Down
7 changes: 1 addition & 6 deletions src/utils/help.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import RNRestart from 'react-native-restart';
import SplashScreen from 'react-native-splash-screen'

export const randomNum = (max = 100): number => Math.floor(Math.random() * max);

export const restartApp = () => {
//show splash screen before restarting
SplashScreen.show();
RNRestart.Restart();
};
export const restartApp = () => RNRestart.Restart();

0 comments on commit 2d8876f

Please sign in to comment.