tonsnoei.nl
open-menu closeme
Home
Archives
Links icon
LinkedIn Twitter
About
🌐
Dutch English
github twitter linkedin rss
  • How to use a try catch with a promise in javascript?

    calendar 19-1-2023 · 1 min read · Javascript  ·
    Share on: twitter facebook linkedin copy
    How to use a try catch with a promise in javascript?

    You can use a try-catch block with a promise in JavaScript by chaining a .catch() method onto the promise. The catch() method receives the rejection reason as an argument and it allows you to handle the exception. Here's an example: 1fetch('http://example.com') 2.then(response => response.text()) 3.then(data …


    Read More
  • High CPU load in VS Code

    calendar 19-11-2022 · 2 min read · Problem Solving VS Code  ·
    Share on: twitter facebook linkedin copy
    High CPU load in VS Code

    There can be several reasons why VS Code produces a high CPU load. In my case I experience this high CPU load on my MacBook since recent versions of VS Code. My MacBook is a heavy machine, but with 2 VS Code windows open I had 4 CPU's fully loaded +400% load! The first thing you can do to find the cause of this issue …


    Read More
  • Fix: ERROR Cannot read properties of undefined (reading 'configurations')

    calendar 3-11-2022 · 3 min read · Problem Solving React Native  ·
    Share on: twitter facebook linkedin copy
    Fix: ERROR Cannot read properties of undefined (reading 'configurations')

    In most cases the error: "ERROR Cannot read properties of undefined (reading 'configurations')" occurs in situations where you use React Native version 0.68.2. In the post you will find a proper solution for this problem, and I will explain what the cause is of this problem. Problem cause In this version of …


    Read More
  • Fix: ViewPropTypes has been removed from React Native

    calendar 2-11-2022 · 3 min read · Problem Solving React Native  ·
    Share on: twitter facebook linkedin copy
    Fix: ViewPropTypes has been removed from React Native

    In most cases the error: "ViewPropTypes has been removed from React Native" occurs in situations where you upgraded your project to React Native version >0.70. In the post you will find a proper solution for this problem and we explain what the cause is of this problem. Related problems Instead of the …


    Read More
  • Solve Flow error in Visual Studio Code on a Mac OS

    calendar 1-11-2022 · 2 min read · Problem Solving Visual Studio Code React Native  ·
    Share on: twitter facebook linkedin copy
    Solve Flow error in Visual Studio Code on a Mac OS

    Did you ever get the error: "Wrong version of Flow. The config specifies version ^0.182.0 but this is version 0.158.0" in Visual Studio Code. I got it when building React-Native apps. This error causes the Visual Studio Code Flow plugin to crash. I was banging my head to find a solution. I am not really a …


    Read More
  • How to change the Firebase push notification icon on Android

    calendar 5-7-2022 · 2 min read · Android  ·
    Share on: twitter facebook linkedin copy
    How to change the Firebase push notification icon on Android

    In this blog post I will explain how to change the notification icon and its color on an Android device. This is the small icon that is shown together with the push notification within the notification bar. Notification icon sizes The notification icon should have the following sizes, in pixels. Which icon is used …


    Read More
  • Patterns in variable names can make code easier to read

    calendar 23-5-2022 · 1 min read · Coding  ·
    Share on: twitter facebook linkedin copy
    Patterns in variable names can make code easier to read

    Felienne Hermans talks in this video about linguistic code smells. They can occur in method or variable names. There are 2 types: Content code smells - With content code smells, the meaning of the method can be misinterpreted. Shape code smells - With shape code smells, the order of the name parts are everytime …


    Read More

Ton Snoei

Freelance software ontwikkelaar, C#, React-Native, Android, iOS, Docker, SQL
Read More

Recent Posts

  • How to use a try catch with a promise in javascript?
  • High CPU load in VS Code
  • Fix: ERROR Cannot read properties of undefined (reading 'configurations')
  • Fix: ViewPropTypes has been removed from React Native
  • Solve Flow error in Visual Studio Code on a Mac OS
  • How to change the Firebase push notification icon on Android
  • Patterns in variable names can make code easier to read

Tags

PROBLEM-SOLVING 4 REACT-NATIVE 3 ANDROID 1 CODING 1 JAVASCRIPT 1 VISUAL-STUDIO-CODE 1 VS-CODE 1
tonsnoei.nl

Copyright  TONSNOEI.NL. All Rights Reserved

to-top