cdvntr / react-native-confetti

Raining confetti made with react native animations
MIT License
221 stars 55 forks source link

refactor: improve code readability, clear timeout on unmount #25

Open Jobeso opened 4 years ago

Jobeso commented 4 years ago

This refactors the code by using arrow functions, const instead of let where possible, clearing the timeout and indicators for private class variables. Also it removes unnecessary variable declarations and sets some more spacing for code readability.