Hey, I am new to React Native and JavaScript. I want to create a simple countdown where you can input a number and select the type of countdown - whether it's in seconds, minutes, or hours. For example, if I choose 'seconds' in a dropdown and enter '10' in a text input field, I would pass an object like this to the function: {count: '10', format: 'sec'}. Does anyone have a helpful example that could assist me with this?
const startCountDown = (countdownObj) => {
setCountdownRunning(true);
//countdownObj.count = 10
//countdownObj.format (sec, min, h)
}