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

kiwi-bundle-react

v2.1.3

Published

- out-of-the box configurations for [TypeScript](https://github.com/microsoft/TypeScript), [React](https://github.com/facebook/react), [React Navigation](https://github.com/react-navigation), [Babel](https://github.com/babel/babel), [ESLint](https://githu

Downloads

3

Readme

Kiwi Bundle React

Features

  • out-of-the box configurations for TypeScript, React, React Navigation, Babel, ESLint, Prettier and Flow
  • integration of react-native-web for building web, Android and iOS apps with a same codebase
  • instant start-up and hot reloading to see your components changes in real time
  • complete toolbox with built-in router, logger, states management and styling simplified to the limit

Getting started

Requirements

NodeJS needs to be installed : https://nodejs.org/en/download/

For Android builds, Java and Android Studio are required

For iOS builds, you need to have Xcode installed on your Mac

Optionally, in replacement of npm, you can install yarn by running npm install -g yarn

If you want Prettier as a code formatter, you will need to install it : https://prettier.io/docs/en/install.html

Finally, if you do not have a text editor yet, give VSCode a try : https://code.visualstudio.com

Install

Create a ./package.json file :

{
  "name": "example",
  "version": "1.0.0",
  "scripts": {
    "start": "kiwi start",
    "test": "kiwi test",
    "build": "kiwi build",
    "clean": "kiwi clean",
    "postinstall": "kiwi postinstall"
  },
  "bundles": {
    "kiwi-bundle": {
      "options": {
        "app": {
          "key": "example",
          "name": "Example App"
        }
      }
    }
  },
  "devDependencies": {
    "kiwi-bundle": "3.2.11",
    "kiwi-bundle-react": "2.1.2"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Then run npm install or yarn install

Init

Before launching your application you will need to create some initial files in your ./src directory

In the demo directory we have written an overview of how to use the main Kiwi Bundle React capabilities through simple examples

You can find an online version of the result right here : https://kiwi-bundle-react.demo.blueforest.cc

Commands

Web

To start a local server, run npm run start web or yarn start web

To build static files, run npm run build web or yarn build web

Android

To start development environment :

  1. Run npm run start metro or yarn start metro
  2. Run npm run start android or yarn start android

To build production files, run npm run build android or yarn build android

iOS

Before your first start, you will need to run pod install in ./ios to install CocoaPods dependencies

Then run npm run start ios or yarn start ios

Test

To start Jest and test your .test.ts files, run npm run test or yarn test

Clean

Run npm run clean or yarn clean