Content Swiper for React Native is released

Check out our content swiper component for #reactnative

  • When we were implementing the Cheapp application we were looking for nice component for viewing images.
  • In our app we had upload indicator etc. built into our image viewer, so this component we released is pretty much built from the scratch to make it bit simpler and also to make it bit more customizable so it hopefully fits better for other peoples needs too.
  • Package includes Slide, SlideZoom, RotateY and Stack animations.
  • index=0 means that image is active and you can use those parameters to define enter/exit animations for your items as you like.
  • Here’s example of normal slide animation, but other animations are pretty much the same too.

Content Swiper component for React Native is out now
Continue reading “Content Swiper for React Native is released”

ReactJS – Parameterized Event Handlers ☞ #reactjs

ReactJS – Parameterized Event Handlers

☞ 

#reactjs

  • It is quite frequent requirement to pass parameters to event handlers of custom React components.
  • There are several ways to achieve this with ES6 depending on weather we need reference to the event or n

    We can simply define the event handler and bind it to using JavaScript’s function.

  • To avoid calling we can use ES6 arrow function which binds the function with automatically

    We can also pass additional parameters to event handlers.

  • To pass parameters to event handlers while using property initializer syntax, we need to use currying.
  • Provided all the different approaches above, using the arrow function with currying is the most efficient and cleaner way to define event handlers that accepts user defined parameters.

It is quite frequent requirement to pass parameters to event handlers of custom React components. There are several ways to achieve this with ES6 depending on weather we need reference to the event or n
Continue reading “ReactJS – Parameterized Event Handlers

#reactjs”

Angular or React

#AngularJS or #ReactJS? Try both, it’s worth it!  #JavaScript

  • How I can communicate between components redux used also in angular with different implementations like @ngrx/store !!!!
  • Ok let’s continue and see how we can pass parameters inside to our component.
  • Ok let’s go ahead and see the result of my first react application.
  • React manage in different way properties and state, we saw already the properties but what I didn’t understood was that the properties can’t be changed by the component.
  • declare a variable and use it (line 3 and line 9);

Say that angular is better of React or vice-versa is not something that really make sense. You should try both of them to understand which one is better
Continue reading “Angular or React”

Release Full support for ImmutableJS out of the box · zalmoxisus/redux-devtools-extension · GitHub

redux-devtools-extension supports Immutable.js out of box now 

#redux #reactjs

  • For function key you can also specify a custom function which handles serialization.
  • replacer function(key, value) – JSON replacer function used for both actions and states stringify.
  • reviver function(key, value) – JSON reviver function used for parsing the imported actions and states.
  • object, which contains date , regex , undefined , error , and function keys.
  • __REDUX_DEVTOOLS_EXTENSION__ ({ serialize : { replacer : ( key , value ) => value && mori .

redux-devtools-extension – Redux DevTools extension.
Continue reading “Release Full support for ImmutableJS out of the box · zalmoxisus/redux-devtools-extension · GitHub”

React Native Heatmap – Wolox Driving Innovation – Medium

Super useuful: #ReactJS Native Heatmap

  • You will need to apply some transformations to your set of points using all of these parameters in the processPoints function .
  • We need to distinguish three points which indicate where to begin and to end the heatmap.
  • With your mapped points, you’ll see how easy it is to render the heatmap.
  • With these two simple steps, you can now incorporate heatmaps in your React Native Projects!
  • At Wolox we are creating react native heatmaps in two simple steps (Yes, two steps!

Not sure how to add a heatmap to your React Native app? We are here to help!
Continue reading “React Native Heatmap – Wolox Driving Innovation – Medium”

No Need for Dependency Injection in React Components – Medium

No need for dependency injection in #ReactJS Components:

  • When a component depends on another component, shallow rendering can help keep your unit tests isolated .
  • When a component depends on a function, you can pass the function in as a `prop`.
  • The goal of dependency injection is to make components more reusable and testable.
  • The function for submitting data can be tested separately and used in other components (like in DI).
  • I avoid putting data fetching and submitting logic directly into components.

Read the full article, click here.


@ReactiveConf: “No need for dependency injection in #ReactJS Components:”


Dependency Injection (DI) is a big part of the way things are done in Angular, so it’s natural to look at whether/how it’s needed in…


No Need for Dependency Injection in React Components – Medium