npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

minube-reactor

v0.11.7

Published

Reusable presentational components

Downloads

6

Readme

version Build Status dependencies Status devDependencies Status License

Reusable presentational components

Introduction

Reactor brings the platform-agnostic Components and APIs of React Native to the Web (and viceversa).

Reactor makes it easy to create fast, adaptive web UIs in JavaScript. Write once, render anywhere: Reactor interoperates with existing React DOM components and is compatible with the majority of the React Native API. You can develop new components for native and web without rewriting existing code. Reactor can also render to HTML and critical CSS on the server using Node.js (isomorphic-javascript).

Who is using this approach? Twitter, Instagram, AirBnB, Netflix, Major League Soccer, The Times, React Native's documentation.

Browser support: Chrome, Firefox, Safari >= 7, IE 10, Edge.

Getting started

You just need these packages as global environment:

[email protected]

brew install yarn
brew install watchman
brew postintall watchman

yarn global add expo-cli
yarn global add create-react-app
yarn global add create-react-native-app

It is time for clone the repository and get all the dependencies using our package.json:

git clone https://github.com/minube/reactor
yarn --ignore-engines

After get all the dependencies you have 2 ways to start playing with Reactor.

Web environment

If you wanna use the web environment just type:

yarn start

This environment is the most advisable if your purpouse is test our components or just develop new ones.

Native environment (iOS/Android)

Otherwise, if you wanna see Reactor in a native device you have 2 ways. But both of them needs start the native environment so you have to type:

yarn start:native

If everything is ok we will get a screen like this:

Native Environment

Now we can choose how we will run the project. If you wanna test in a simulator you will need get the environment (xCode, Android) in your system. If you wanna test in real devices you must install the Expo Client for iOS or Android. After that just read the QR Code with the Expo Client and done.

Test and Lint your code

We recommend you use a linter in your IDE but If you like the old-school style you should execute the task:

yarn lint

Testing reactor components is quite easy. We use JEST and its snapshots feature. Typing:

yarn test

JEST will check if any snapshot has changed, if you get an error could be because it's a real error or just because you have changed the JSX of your component. In this case you should update your snapshot typing:

yarn test --u

Releasing a new version of reactor

Typing yarn release our process of building will start:

  • Creating a new tag using mayor/minor/patch scheme
  • Building a compiled version
  • Publishing changes in the storybook minube.github.com/reactor