On snack.expo.io , I’m trying to validate count in the ‘Count.js’ file. I’m using a static method to validate if count is a number. When I’m exporting it to ‘App.js’ and passing a string as count , I’m expecting to receive a warning(yellow box at the bottom of the phone screen). However, this doesn’t happen.
Any help regarding what I’m doing wrong would be greatly appreciated. Thanks for reading.