Create launch screen for React Native app in Xcode

If you are working on a cool React Native app, I guess you want to make to look-and-feel completely to your own design. Well, the launch screen is the first thing a user see. The first look must be the best! So let’s create a splash screen for your React Native in Xcode, so your user doesn’t see that ugly default screen that React Native show by default in iOS.

Find duplicate property values in an Array of Objects in JavaScript

Finding duplicate property values in an Array of Objects in JavaScript is not always that simple if you thought, so let’s dive in! A few days ago I needed to work this out, so I thought let’s write it down, so I could use it later again! Array of Objects Let’s define an example Array of Objects, where each Object is a user: var myArray = [ {id: 1, name: 'Foo Bar', email: 'foo@bar.

The JavaScript array.forEach() method doesn’t return anything!

A while ago working on a cool Angular2 project I discovered some weird behavior, weird because I didn’t realise it was working that way. I was checking if an id property of an object, was already in an array. If it was, it won’t push it again. It is wasn’t in there, it could push the object in the array. It doesn’t seem that difficult. So I created a little function so I could check it from anywhere in my application.

How to use JavaScript Module Pattern inside WordPress

Since I discovered that it is better to avoid to put everything in your global scope with JavaScript I love to use the Module Pattern. (Mastering The Module Pattern of Todd Motto is a very good article about it) But I build a lot of WordPress websites. At the first time I started the create a cool slider for 1 of my clients with the Module Pattern, it was not easy to let WordPress change options like the autoplay, slide effect or the animation speed.

JavaScript addEventListener onblur doesn’t work in Firefox, this is the fix!

For a cool project is was building an Email validation script. But Firefox got some weird thing with the “onblur” event. Since I’ve decided to leave jQuery behind, and make more use of (Vanilla) JavaScript, i got this problem that my code wasn’t working. Example 1: Doesn’t work: // HTML Enter your name: <input type="text" id="fname"> <p>When you leave the input field, a function is triggered which transforms the input text to upper case.
1 of 2 Next Page