The header bar in a new react native or expo project will either show as plain white in the background or eat up a good chunk of your app header area. This easy solution will pad out the header component by the height of the status bar, so it integrates nicely up top. First up,… Continue reading Fixing react native header bar (and status bar) on android and iOS.
React Native: UI Libraries Compared
I’ve listed below a few react native libraries that are useful from time to time. Shoutem 3264 github stars Homepage Github NativeBase 8268 github stars Homepage Github React Native Elements 10309 github stars Homepage Github
GuzzleClientException truncated
By default, a Guzzle error thrown in Laravel will truncate the response body. When you’re deep in an API integration, this is a productivity killer. Here’s an easy way to error log the full response body from the API. try { $response = $client->request( “POST”, $this::$resource, [ ‘json’ => $item ] ); $body = json_decode(… Continue reading GuzzleClientException truncated
Code Workshop is locking in ReactJS.
There’s a common complaint among the javascript ecosystem, from new developers and seasoned developers alike. We’re all exhausted from learning, building with, and then maintaining the new hot framework of the day. Below, we’ve detailed how we decided to lock in ReactJS. Who are we? I’m Rhys Williams. I run Code Workshop, a Sydney app… Continue reading Code Workshop is locking in ReactJS.
React Native: Example of full expo app.json
When I first started spending time with React Native, it was often a battle to work out just where and how things were supposed to be formatted in the app.json. The base file doesn’t include the splash screen, app icon, notification icons, google signin nodes, and nodes required to build for the Play Store and… Continue reading React Native: Example of full expo app.json
Error 403 when creating WooCommerce PUT API call
Apparently, PUT requests and other types of requests fail silently on many shared hosts. I had this error across two different customers who use WooCommerce API integrations. Instead of PUT, simply use POST! As long as you supply the relevant ID, WooCommerce will know you’re making an update. We came across this while working… Continue reading Error 403 when creating WooCommerce PUT API call
WooToApp – Convert a WooCommerce store to a mobile app
I’ve had my head down with a few trusty devs coming up with a beta to bundle up and convert a WooCommerce store to a mobile app.
Sample Homestead.yaml file for windows
I use Vagrant/Homestead for PHP, WordPress, Laravel development at Code Workshop day in day out with no issues anymore about ‘developing on windows’. xdebug bolts up fine, and there’s far fewer issues when deploying to production because of the matching linux environment. Here’s a cut down example of my homestead.yaml file that I use and… Continue reading Sample Homestead.yaml file for windows
Compiling dynamically inserted Angular Components
A pattern that comes up a lot in Angular is substituting an angular component into a string when it’s being rendered.
Laravel Snippets: Useful Packages
I’ve got a library of go-to packages for Laravel projects that can knock days off a project. When the wheel is invented, developed, and proven in production, there’s no good business case to do it again.