Write once, run anywhere with Create React (Native) App and react-native-web

¡Write once, run anywhere with Create React (Native) App and react-native-web by @yannickdot

  • npm install –save-dev babel-preset-expo jest-expo flow-bin react-native-scripts add –dev babel-preset-expo jest-expo flow-bin react-native-scripts react-test-renderer@16.2.0And we add the packages for react-native, react-native-web and expo : – npm install –save expo@^25.0.0 react-native@0.52.0 react-native-weboryarn add expo@^25.0.0 react-native@0.52.0 react-native-webNow let’s add a few files necessary to build a React Native app : – { – “presets”:…
  • flowconfig file in your project directory and add the flow settings available here – { – “expo”: { – “sdkVersion”: “25.0.0” – } – }App.test.js : this is the entry point for testing the React Native app.
  • toJSON(); – then add a App.js file, this is going to be our React Native app entry point.
  • │ – └── src – │ ├── index.js – entry point for CRA (don’t move/rename it) – │ └── … more source files – │ – └── public – ├── index.html – ├── favicon.icon – └── manifest.jsonNow let’s make a few changes to our package.json file and add some useful…
  • import React, { Component } from ‘react’ – import { View, Text, StyleSheet } from ‘react-native’export default class App extends Component { – render() { – return ( – View style={styles.app} – View style={styles.appHeader} – Text style={styles.appTitle}Welcome to React âš›ï¸�/Text – /View – Text style={styles.appIntro} – To get started, edit…

EDIT January 2018: I’ve updated this article with up to date versions (no more beta dependencies!). Thanks @KajiTetsushi for your help! 🙂 EDIT Feb 2018 : All the versions are up to date to go along…
Continue reading “Write once, run anywhere with Create React (Native) App and react-native-web”

Sneak Peek: Beyond React 16

  • The talk opens with a question: “With vast differences in computing power and network speed, how do we deliver the best user experience for everyone?”
  • If my device is fast enough, it feels almost like it’s synchronous; if my device is slow, the app still feels responsive.
  • Notice that only the final state was displayed; the rendered screen is always consistent and we don’t see visual artifacts of slow rendering causing a janky user experience.”
  • On the second demo, Dan explains: “We’ve built a generic way for components to suspend rendering while they load async data.
  • On a slow network, you can intentionally design which loading states the user should see and how granular or coarse they should be, instead of showing spinners based on how the code is written.

Continue reading “Sneak Peek: Beyond React 16”

Build production ready universal apps using MERN Stack v2.0 #MongoDB #ExpressJS #ReactJS #NodeJS via @mern_io

  • In this version, we also added code generators.
  • Blueprints for those generators are located at , and config is located at .
  • Take a look at this section in the documentation which explains how to modify generators.

MERN is a scaffolding tool which makes it easy to build universal apps using Mongo, Express, React, NodeJS, Redux and Webpack. It minimizes the setup time and gets you up to speed using proven technologies.
Continue reading “Build production ready universal apps using MERN Stack v2.0 #MongoDB #ExpressJS #ReactJS #NodeJS via @mern_io”

Interview of @hrmny_ about Parket, a light state management library inspired by mobx-state-tree #mobx #reactjs

  • I am currently working as a freelance full-stack developer.
  • Parket is a state management library; a well-known example would be Redux.
  • Parket lets you create models with a state, actions, and views; these can later be used by instantiating them and can be nested inside each other.
  • As you can see here, Parket doesn’t care what your action does or instead what it is; it just listens to state changes.
  • It’s always nice to see new approach to state management.


State management is one of those topics that divides opinions. So far we’ve seen a couple of option…
Continue reading “Interview of @hrmny_ about Parket, a light state management library inspired by mobx-state-tree

#mobx #reactjs”

Here’s a beautiful React-native UI kit for fintech startups 💳💸

  • Bucks UI a react-native theme is a financial mobile app theme made from one of our designs.
  • You can use the theme to build your next cryptocurrency wallet app or any other financial inspired app you might need.

Bucks UI – A react-native theme for your fintech startup. (Android, iPhone, and Design Tools) Read the opinion of 18 influencers. Discover 8 alternatives like React Native and React Native for Android
Continue reading “Here’s a beautiful React-native UI kit for fintech startups 💳💸”

Introducing React Paginating 🎉🎉🎉 – Dzung Nguyen – Medium

Introducing React Paginating 🎉🎉🎉 @davidnguyen1791 

#Reactjs #Javascript #Webdev #Tech

  • Introducing React Paginating 🎉🎉🎉Today, I am happy to announce a React Paginating component.gif react-paginating demoThere are some popular components which help us to solve pagination problem such as react-paginate, react-pager, … Now there is another one.
  • It’s called react-paginating with a different approach.How “react-paginating” is uses Function as Child Components pattern which allows a component to publish any variables, states or functions to the outside as input params of a function which is going to be used for handling logic and rendering the UI.Here are some…
  • The formula to calculate totalPages:const totalPages = Math.ceil(total / limit);pageCountHow many pages you want to display.I.e:pageCount = 5with pageCount = 5pageCount = 9with pageCount = 9currentPageThe page currently you are visiting.
  • The component calculates and publishes props which allow controlling UI.
  • After that, you might put your CustomAnchor / somewhere on your “storybook” or components manager.DemoConclusionIf you see it is useful for you.

There are some popular components which help us to solve pagination problem such as react-paginate, react-pager, … Now there is another one. It’s called react-paginating with a different approach…
Continue reading “Introducing React Paginating 🎉🎉🎉 – Dzung Nguyen – Medium”

Introducing reactjs-popup 🎉 — Modals, Tooltips and Menus — All in one

  • Introducing reactjs-popup 🎉 — Modals, Tooltips and Menus — All in onereactjs-popup Home page article is about giving you a simple overview of what you can do with reactjs-popup and how to use it effectively.Today, we are excited to announce reactjs-popup 1.0.Reactjs-popup is a simple and very small (3 kb) react popup component, with multiple…
  • How can reactjs-popup help you in your next react project?If you need to create a simple modal, tooltip or a nested menu this component is your best choice to start with.
  • It will work correctly with all popular bundlers.npm install reactjs-popup –save#using yarnyarn add reactjs-popup -SNow you can import the component and start using it :import React from “react”;import Popup from “reactjs-popup”;export default () = ( Popup trigger={button Trigger/button} position=”right center” divPopup content here !!
  • /div /Popup);You can also use it with function as children pattern.import React from “react”;import Popup from “reactjs-popup”;export default () = ( Popup trigger={buttonTrigger/button} position=”top left” {close = ( div Content here a className=”close” onClick={close} times; /a /div )} /Popup);Complete component API : Reactjs-popup Component APIUse Cases 🙌ALL in one demoreactjs-popup demo (Modal,tooltip,Menu)What’s…
  • The next version of reactjs-popup will support creating Simple Toast with full customization,But our big deal is to add Animation API to the component so fell free if you have any ideas 💪.Thanks for reading!

Reactjs-popup is a simple and very small (3 kb) react popup component, with multiple use cases.
we created reactjs-popup to create a color picker for our project picsrush a new online image editor…
Continue reading “Introducing reactjs-popup 🎉 — Modals, Tooltips and Menus — All in one”