We make a starter that combines Reactjs and Mobx 6, we make it with persist (save to local-storage) and without decorators 🚀

React + MobX

First of all, we put the result (in a sandbox), you can see the connection between components and the usage in stores and local-storage data.
In the example project, we have 4 component:
1) RootComponent — parent with 3 child components
2) ComponentA
3) ComponentB
4) ComponentC

react with mobx6…

Sometimes we want to control the Webview and/or get a response from the Webview, Just for that, the Webview has injectedJavaScript prop.

Photo by Sara Bakhshi on Unsplash

In some cases we want to change elements in Webview such as button color, in other cases, we want to add elements such as text or image.
we can do it with injection code to Webview.

Let’s change the header background color of the official react-native website to purple 🍆

Here is an example of YouTube video integration in React Native without an external library.

Photo by Christian Wiediger on Unsplash

First, we need to use WebView we can import it from react-native (but they recommended over to react-native-webview)

import { WebView } from ‘react-native’;
// or
import { WebView } from ‘react-native-webview’;

We’ll place the code where we want to put the video

videoLink = “https://www.youtube.com/watch?v=RgKKgzVhMgY"

<WebView…

All of us like to use this nice library that makes our life easier, but before your next import let’s understand how much it costs and how we can reduce it.

Where did it all begin?
In one of my projects in React Native, I tried to figure out why the app was too big and one of the things that made the app great was Lodash,
Like everyone else I used Lodash in several places in the project and in every file…

Idan Levi

Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store