snack.expo.io , I’m trying to validate 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. count
Here’s my code:
No warning for incorrect proptype - Snack
Any help regarding what I’m doing wrong would be greatly appreciated. Thanks for reading.
This looks like it might be a snack bug. I suggest you create an issue at
https://github.com/expo/expo/issues with the details.
If I export the project and run it locally on my machine then I do get the yellow box warning.
wodin. I’m a bit relieved to know I might not be doing it wrong as I spent hours debugging this.
I’ve posted the issue here:
Hi, I see I sent you to the wrong repository. I should have sent you to the snack-web repository.
I’ve just found this issue there which looks basically the same as yours:
01:23PM - 06 Apr 19 UTC
Hi. I love snack but this irks me. I was trying to showcase a RN warning to a react developer who...
Thanks for the find. I’m just seeing this reply and have already created a new issue in the snack-web repository. I hope it isnt against the rules and will be fixed soon.
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.