Configure Fresco in React Native – Brent Kelly – Medium

Configure Fresco in React Native  #reactnative #fresco #android #hudl #reactjs #reactjs

  • Configure Fresco in React NativeRecently while carrying out some Android performance profiling on a new React Native feature at Hudl, I noticed some potential memory issues when loading and displaying a large amount of images.
  • Under the hood the React Native Image/ component uses another Facebook library for Android called Fresco which caches images automatically (amongst other things).
  • When I dug deeper I could see that the default configuration that React Native sets for Fresco will have a cache size of about 1/4 of your apps upper allocated memory limit (which will be higher for powerful devices like my Pixel and lower for low-end ones like that HTC Wildfire your Dad is still using).
  • The question I was asking myself was how do I configure Fresco in a React Native app?
  • Turns out this is quite easy (once I dug through the React Native Java code and worked out how) so let me show you…In your android folder of your React Native project open MainApplication.java and update the getPackages() method like so…You’ll notice I’m creating a new Fresco configuration and passing in a custom Supplier to which looks something like this…I’ve kept my custom cache configuration pretty much the same as the default because I like that it caters for low-end devices but feel free to use any configuration you want.

Recently while carrying out some Android performance profiling on a new React Native feature at Hudl, I noticed some potential memory issues when loading and displaying a large amount of images. The…
Continue reading “Configure Fresco in React Native – Brent Kelly – Medium”

How to Be A JavaScript Developer – Ken Rogers – Medium

How to Be A JavaScript Developer  #meteor #javascript #webdevelopment #react #reactjs

  • But I’ve always found that the best way to learn web development is to just build things.Meteor is a great way to get started just building things.It’s become a little more complex since its early days, but with the right setup and direction, it can still be a great way to bootstrap reactive applications.I think it’s a fantastic way to get started learning JavaScript development, or branch out into a new framework if you’ve already been using JavaScript for a while.So I wanted to put together this little guide that will serve as a potential path to learning web development with Meteor and React.All of these are resources that I have personally used and have served me well in learning.
  • Learn ES2015This free walkthrough of ES2015 does a great job of introducing you to the basics and walking you through how to use all of the new shiny things.Step 2 — Learn MeteorAlright, now that you’re familiar with JavaScript and its new syntax and capabilities, it’s time to dive in to Meteor.The Meteor TutorialThe official tutorial from Meteor.
  • The Meteor GuideAfter you’ve been introduced to Meteor with the tutorial, dive in to the guide to learn how to structure your project, and to get some more in depth knowledge on the finer points of MeteorStep 3 — Learn ReactSo you’ve got a decent handle on Meteor, not let’s dive into React.The React DocsThe official React docs do a good job of introducing you to the concepts and how to think in a React-ish way.2.
  • It also comes with GitHub source code so you can use it as an example.Phase 2 — BuildStep 1 — Experiment with BaseNow that you’ve got a good grasp on how to develop using Meteor and React, it’s time to start building things.Base is a Meteor boilerplate project to help you bootstrap your Meteor projects.It’s built with React and also uses React Router.In my opinion, downloading Base and digging into it, hacking on it, and using to as the starting point for your own project is one of the best ways to learn development with Meteor.By digging into Base, you’ll get an idea of best practices when building things with Meteor and React, and you’ll be able to use it as a template for building projects.Using the books and courses from the Learn phase as your foundation, you’ll be able to understand how Base is put together and how it all works.Really take the time to dig into every different component and figure out how everything is working.
  • Resist the urge to bounce around from framework to framework, constantly switching to whatever seems coolest.Instead, find problems that need to be solved, figure out a way to solve them with web applications, and then find the proper tool for the job.One of the most important skills for a professional developer is being able to build usable applications that solve real problems for real people.If you can find examples of those out in the wild, and build up a portfolio of yourself solving those with web apps, you’ll be indispensable.So now that you know the basics of JavaScript development with Meteor and React, I want you to get out there and start using that knowledge to solve real problems.Share that knowledge and those solutions with others.

A few years ago, I stumbled on a video of somebody making a responsive, real-time web app using something called Meteor. If you haven’t seen it yet, I recommend giving it a watch. It was pretty…
Continue reading “How to Be A JavaScript Developer – Ken Rogers – Medium”

Facebook Announces More Performant Version of React Framework

Facebook Announces More Performant Version of #React Framework 

 #ReactJS

  • At F8 —Facebook’s annual developer conference — the company’s engineers took to the breakout stages to discuss the newest versions of the React and Relay frameworks, both of which were rewritten from the ground up to deliver significantly better performance to the applications that are written with them.
  • In some cases, that means better performance for certain features of certain applications since developers can selectively apply the framework capabilities to some parts of their apps, and not others.
  • Occhino gave examples such as jank — a well-known term to developers that describes the jittery look of applications during user initiated operations such as page scrolling where, as opposed to a naturally fluid feeling, a page seems to stutter as it’s scrolled.
  • Another example Occhino discussed is when the user attempts to do something with their application and they get a pinwheel or some other indication that the system is busy with other tasks.
  • According to Occhino, given this set of circumstances, one way to naturally improve the perceived performance of a React app is to reprioritize tasks in a way that the experience that’s right in front of the end-user gets the highest priority in terms of system resources like CPU.

At F8 — Facebook’s annual developer conference — the company’s engineers announced a new version of React with a core designed to optimize the performance of applications that are written with the framework. The new core, React Fiber, is better at scheduling tasks based on what the user is doing.
Continue reading “Facebook Announces More Performant Version of React Framework”

Build Your First React.js App

Build Your First React.js App course by @tylermcginnis33 #react

  • Building your first React application can be challenging.
  • One of the huge challenges when you are getting started with React is all of the other pieces that contribute to creating an application.
  • In this series, we will go beyond React, and look at the full picture of what goes into a React application.
  • We will use Webpack to build the application.
  • When you’ve completed this series you will have built a full-blown web application using React, and should have the tools needed to start building your own applications today.

Let’s start from scratch and build a full React application!

Building your first React application can be challenging. React itself is fairly simple. It has a small API that can be learned quickly. One of the huge challenges when you are getting started with React is *all of the other pieces* that contribute to creating an application.

In this series, we will go beyond React, and look at the full picture of what goes into a React application. We will use Webpack to build the application. We will use Firebase to persist data. We will dig into react-router for our applications routing.

When you’ve completed this series you will have built a full-blown web application using React, and should have the tools needed to start building your own applications today.

Continue reading “Build Your First React.js App”

Its in the a.m. – Montez McCamish – Medium

Its in the a.m.  #inspection #hustle #webdevelopment #react #selfimprovement #reactjs

  • But I woke up felling that I should set out letting others know that this is so true.
  • You are going to have to believe in your self !
  • most of the times your going to have to do alot all by your self, No one is going to care about your dreams as much as you do.
  • I do know that when you show that you have value to others then others will want to gain or help with in the value that you have.the point truly is just this YOU CAN DO ALL THINGS !

Its in the a.m. But I woke up felling that I should set out letting others know that this is so true. You are going to have to believe in your self ! most of the times your going to have to do alot…
Continue reading “Its in the a.m. – Montez McCamish – Medium”

Use create-react-native-app to Set Up a Simple React Native App

  • React Native requires a lot of initial set up to get an app going.
  • After creating the project we will run the development server which will print a QR code on the terminal.
  • We will install the app called on our mobile phone and use it to scan the QR code.
  • This will load our app on our mobile phone in development mode.
  • When make adjustments to our project the changes will be reflected on our phone.

React Native requires a lot of initial set up to get an app going. In this lesson, we will use create-react-native-app to do this initial setup for us. We will install create-react-native-app globally and create a new project.
After creating the project we will run the development server which will print a QR code on the terminal. We will install the app called Expo Client on our mobile phone and use it to scan the QR code.
This will load our app on our mobile phone in development mode. When make adjustments to our project the changes will be reflected on our phone. If we use console.log the messages will be printed in our terminal.
Download the Expo Client from App Store (https://itunes.apple.com/app/apple-store/id982107779?pt=17102800&ct=www&mt=8) or Google Play (https://play.google.com/store/apps/details?id=host.exp.exponent&referrer=www)

Continue reading “Use create-react-native-app to Set Up a Simple React Native App”

Why I prefer Ember.js over Angular & React.js

Reasons to prefer #EmberJS over #AngularJS & #ReactJS:

  • Fortunately one month ago I got a chance to work with a client who wanted me to develop his project in Ember.
  • I was not much excited as ember was a known guy to me, but started developing the project as it’s a day to day life for me.
  • But after delivering the project I started thinking of my experiences with these three front-end frameworks and probably today publishing this article out of my emotions.
  • If all the teams of your organization (or even someone outside your organization) are developing ember applications using ember-cli; they will be very familiar to the projects architecture and in no time can start contributing at any project.
  • The developers of Ember’s core team are also developers in their own projects and this is the biggest plus of Ember.

JavaScript, Node.js, mongo, react, angular and many more
Continue reading “Why I prefer Ember.js over Angular & React.js”