Horizontal scroll animations in React Native – codeburst

  • Horizontal scroll animations in React NativeLink Animated with ScrollView to create a nice navigation UI animation in React NativeWhat we will be buildingRN lets you build a nice and smooth UIWhat you will needReact NativeSimulatorNo third party libraries required :)Creating Screen component with AnimatedFirst, import Animated, Dimensions, ScrollView, StyleSheet, Text, View from “react-native” .
  • Next, create a component that will be treated as a screen or a view.We are using Animated.View here because we are going to animate that wrapper component.That width ofscrollPage style and are important because we are going to interpolate horizontal scrolling values to multiple animation values.
  • In other words, we are going to track where the screen is and animate the screen component based on that value.It’s one of the things that are tricky to explain in words, but it is the key concept to understand for this to work.Basically, we link animations based on the…
  • When the scroll position is at 150, first screen is half way done exiting, and the second screen is half way done entering.Adding animationsSince they are all set up, it is time to write the animations.
  • You would have to write a different inputRange since FlatList removes items that scroll way off screen.I think this is pretty neat UI animation that’s pretty simple to use.

That width ofscrollPage style and transitionAnimation(props.index) are important because we are going to interpolate horizontal scrolling values to multiple animation values. In other words, we are…
Continue reading “Horizontal scroll animations in React Native – codeburst”

Creating a chat web app using Express.js, React.js & Socket.io

  • Implementing Send Message functionalityLet’s go back to our Client’s Chat.js Component and add the following functionality to our button:Now let’s create this.sendMessage function:in Constructor add the following:Great.
  • You are now sending the message to the server every time you click ‘Send Message’, and then your message input is cleared so you can write another message.
  • All we have to do now is tell the server to emit the message to everyone who’s socket is connected to our server.In app.js on the server side add the following code:What we are doing here is that we are emiting the info we received from the client (author and…
  • Now all that’s left to do is to catch that emit on the client side and add the message to our messages array.Back in the Chat.js component on the client side add the folloing in the constructor:I will now post how all the files should look like:Chat.jsapp.jsThis function will catch…
  • We already implemented a messages.map functionality so now every time you add a message you should see it in your chat.

In this article I will be creating a chat web app using Express.js, React & Socket.io. I will be using Bootstrap for styling. You will see how the final files should look like in the end. We will now…
Continue reading “Creating a chat web app using Express.js, React.js & Socket.io”

React Native Monthly #4

  • The React Native monthly meeting continues!
  • Here are the notes from each team: – – Trying to lower the entry barrier for the developers embracing React Native with the following things: – – The next session is scheduled for Wednesday 10, October 2017.
  • As this was only our fourth meeting, we’d like to know how do these notes benefit the React Native community.
  • Feel free to ping me on Twitter if you have any suggestion on how we should improve the output of the meeting.

The next session is scheduled for Wednesday 10, October 2017. As this was only our fourth meeting, we’d like to know how do these notes benefit the React Native community. Feel free to ping me on Twitter if you have any suggestion on how we should improve the output of the meeting.
Continue reading “React Native Monthly #4”

Writing Easily Testable Code with Stateless Components in React.js

Writing Easily Testable Code with Stateless Components in #React.JS  #javascript #testing

  • The use of Stateless Functional Components (a.k.a. “pure” or “dumb” components) in React.js continues to grow since first it was released in React 0.14, and for good reasons.
  • By relying on pure components, developers end up writing reusable code that’s extremely easy to test, which leads to better application architecture.
  • Personally, I like the term “pure component” because it’s indicative of what the code really is — a pure function sprinkled with some JSX.
  • In addition to these benefits, pure components also make it extremely easy to test code with any crazy props that you wish.
  • As we just saw, the code for functional components provides us awesome intel for everything we need to know in order to write effective tests.

Functional Stateless Components provides clean syntax that allows us to write more declarative code. We will look at stateless components and finish up with some unit tests in this article.
Continue reading “Writing Easily Testable Code with Stateless Components in React.js”

Writing Easily Testable Code with Stateless Components in React.js

  • The use of Stateless Functional Components (a.k.a. “pure” or “dumb” components) in React.js continues to grow since first it was released in React 0.14, and for good reasons.
  • By relying on pure components, developers end up writing reusable code that’s extremely easy to test, which leads to better application architecture.
  • Personally, I like the term “pure component” because it’s indicative of what the code really is — a pure function sprinkled with some JSX.
  • In addition to these benefits, pure components also make it extremely easy to test code with any crazy props that you wish.
  • As we just saw, the code for functional components provides us awesome intel for everything we need to know in order to write effective tests.

Functional Stateless Components provides clean syntax that allows us to write more declarative code. We will look at stateless components and finish up with some unit tests in this article.
Continue reading “Writing Easily Testable Code with Stateless Components in React.js”

How can ZEAL help your team deliver? – ZEAL – Medium

How can ZEAL help your team deliver?  #rubyonrails #react #reactnative #reactjs

  • How can we help your team deliver?Our company, ZEAL, is a collective of web and mobile application specialists.
  • Think highly experienced (Senior) Ruby on Rails and React Engineers with a refined delivery process.Since 2013, and every year since, our team has worked with a dozen companies or more, all from different industries, and at different stages of growth.
  • So, whether we’re talking about financial regulations, HIPAA and concerns for patient data, real estate, experiential design, or simply integrating with lights in your house and small IoT devices, our team has experience.Do you or a company you work with have an urgent need to get traction delivering web or mobile code?We love to work with teams of engineers and/or product owners that need to increase output and get more done, sooner.
  • And, while our team is exceptional at crafting code, what we do better than anything is deliver certainty…“Zeal’s code review service was the perfect fit for a sudden vacuum in our development team.
  • When one of our senior developers left the team, we needed to keep the ship moving… Zeal’s expertise and engaging working style let us move forward without a hitch.

Our company, ZEAL, is a collective of web and mobile application specialists. Think highly experienced (Senior) Ruby on Rails and React Engineers with a refined delivery process. While our team is…
Continue reading “How can ZEAL help your team deliver? – ZEAL – Medium”

rxjs-diagrams

  • The input values are converted to an observables and then transformed to an output using the transform prop.
  • Having multiple input streams is as simple as passing multiple value arrays and accepting them in your transform function.
  • The common three values that describe your input are: emissions, end, and completion.
  • (Example: )

    Completion is the time value when your observable completes.

  • More information on Schedulers here : Here you can pass an array of emissions (described above) or an array of an array of emissions, in case you want multiple input observables.

React components for visualising RxJS observables and operators
Continue reading “rxjs-diagrams”