Saulo FreireCreating a Custom Error Class in TypeScriptBecause of the way JavaScript structures it's classes, it is not so simple to create a custom error class in TypeScript. Here's a quick tip.Feb 5, 2021Feb 5, 2021
Saulo FreireQuick way to check development environment in React NativeIf you ever need to check if you're in development (debug) environment in React Native, here's a quick snippet.Feb 4, 2021Feb 4, 2021
Saulo FreireRename all the files in current directory programmatically in PythonRenaming a bunch of files by hand can be painful when working in a mobile app. Here's a quick script to help you.Feb 4, 2021Feb 4, 2021
Saulo FreireList current folder files in a JSON array with JavaScriptIf you ever need to list the current folder's file in a node environment and put it in a JSON, here's a quick solution.Feb 4, 2021Feb 4, 2021
Saulo FreireAutobinding Functions in React Class ComponentsIf you're still writing class components on React, this will make things a little bit faster to code.Feb 4, 2021Feb 4, 2021
Saulo FreireHow to present an UIAlertController from an UIViewUsually, you can't. But here's a workaround.Feb 4, 2021Feb 4, 2021