refactor(app.tsx): use constants instead of hard coded strings for better readablility (#1391)

don't use inline function as it will create a new refrence everytime
This commit is contained in:
Aakansha Doshi
2020-04-12 06:12:02 +05:30
committed by GitHub
parent d902bbd618
commit e98fba38be
3 changed files with 129 additions and 59 deletions

4
src/time_constants.ts Normal file
View File

@@ -0,0 +1,4 @@
// time in milliseconds
export const FONT_LOAD_THRESHOLD = 1000;
export const TAP_TWICE_TIMEOUT = 300;
export const INITAL_SCENE_UPDATE_TIMEOUT = 5000;