I ended up getting this error after an unsuccessful attempt to update the expo-cli. The solution was to delete the .expo folder from the project. Good luck! : )
Category: JS
Icons Not Loaded After Updating ReactNative Expo to Version 40
TL; DR: If you’re loading SVGs, check into your metro.config.js and see if you’re using the getDefaultConfig from ‘@expo/metro-config’. If you’re requiring it from ‘metro-config’, you should update your code based on the one below. More info in the readme of ‘react-native-svg-transformer‘ Recently I’ve had an issue with updating a project I was working on… Continue reading Icons Not Loaded After Updating ReactNative Expo to Version 40
Messing with Expo Permissions caused ImagePicker to misbehave
Have you seen the following alert? Sorry, we need media library permissions to make this work! Well.. me too! 🙂 And I’ve seen this error despite the fact that I’ve had both the “CAMERA” and “MEDIA_LIBRARY” permissions added to my android.permissions array. Googling didn’t help much, because it just led me to either the expo… Continue reading Messing with Expo Permissions caused ImagePicker to misbehave
Updating a React Native/Expo image file does not update the visualization of this image everywhere in the app
I’ve had an interesting problem when saving and updating images in a React Native application built with Expo. I’m building an app that has contacts and images (that are either taken from the phone contact entry or picked from the gallery). The issue was that editing the image at one place and saving it, would… Continue reading Updating a React Native/Expo image file does not update the visualization of this image everywhere in the app
Android Emulator Losing Internet Connectivity
Spoiler: When having Internet connectivity issues, make sure that Android Studio is running. (because it acts as a proxy for the emulator) So I’ve had a reoccurring issue where my Android Emulator device would lose connectivity from time to time, and to fix it I went to delete it and create a new device from… Continue reading Android Emulator Losing Internet Connectivity
Wondering how big is your React project?
Recently I wanted to explore the impact of a refactoring I did so I ended up checking the length of the files I’ve had in git (hoping that this number would decrease). The magic command was to list the files in git, grep the ones ending with js, jsx and css and count the lines.… Continue reading Wondering how big is your React project?
AWS Closes S3 Read Stream Unexpectedly
I’m continuing with my notes on transferring big files from and to AWS S3 with node.js If you are reading a file from a S3 bucket using a stream that you occasionally pause, mind that the read stream will be closed in 60 minutes. If you cannot handle the file in that period of time,… Continue reading AWS Closes S3 Read Stream Unexpectedly
Node.js Streams and why sometimes they don’t pause()
TL; DR: If you pipe your node.js streams, make sure you pause the last one in the chain. The longer story: We’re building a node.js application that ingests data from multiple data sources for a client of ours. Since they are quite big in size and in user base (we’re going to process data for… Continue reading Node.js Streams and why sometimes they don’t pause()
Testing with Jest in a node and ReactJS monorepo (and getting rid of environment.teardown error)
Big number of the applications we develop have at least one ReactJS UI, that is held in one repo and an API, held in another. If we need to reuse some part of the code, we do so by moving it to another repository and adding it as a git submodule For our latest project… Continue reading Testing with Jest in a node and ReactJS monorepo (and getting rid of environment.teardown error)
JS variable loaded using wp_localize_script is no longer available
TL;DR: Call the wp_localize_script after registering/enqueuing the script you are localizing. Recently (WP 4.1.4 / WP 4.2) my ajax scripts stopped working. I’ve noticed that it was caused by the fact that the variable for the ajax_url was undefined so for some reason it ws no longer loaded to the page. The reason turned out… Continue reading JS variable loaded using wp_localize_script is no longer available