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

@neosyn-ee/neos-native-kit

v0.0.24-alpha

Published

A set of ready-to-use components makes app development a fast and effortless experience.

Downloads

27

Readme

React Native Core

Features

Developer experience first:

  • ⚛️ React Native for building native apps using React
  • 🔥 Type checking TypeScript
  • 📏 Linter with ESLint
  • 💖 Code Formatter with Prettier
  • 🦊 Husky for Git Hooks
  • 🚫 Lint-staged for running linters on Git staged files
  • 🦺 Unit Testing with Jest and React Testing Library
  • 🧪 E2E Testing with Detox
  • 🗂 VSCode configuration: Settings, Tasks and extension for ESLint, Prettier, TypeScript, Jest

Requirements

For more information: React Native setup

Getting started

Run the following command on your local environment:

git clone
cd my-project-name
yarn install

Then, you can run locally in development mode with live reload:

yarn run start
yarn run android
# Or
yarn run ios

Storybook

An example how to add a separate JS bundle entry point for RN Storybook and how to switch between entry points from the Dev Menu:

A separate entry point helps to ensure that application's bundle won't include any Storybook code.

Also switching between Storybook and app is very straightforward and convenient and it's possible to keep the app and Storybook open in different Simulators / Emulators at the same time.

How to use

Check this diff: https://github.com/zubko/react-native-storybook-with-dev-menu/commit/7486060842a15d12ecdd5256f2fb0ddddc7e0e32

Generally the process is:

  1. Add Storybook JS bundle entry point
  2. For Android and iOS:
    • Add extra files to the native projects
    • Change the existing native files

Thoughts

Probably it should be possible to move the code to a separate NPM package to make the integration a bit easier, but I'm lacking some knowledge of native Android module part of RN to get the DevSupportManager instance and application context in the module at the proper moment of time when they are constructed, so any suggestions are welcome.

Anyways, the decision of the JS entry point happens in the native app's code, so some manual changes to the native code of the app will be needed in any case.

Testing

Testing is an important part of the development process and often the neglected one. This starter code comes up with Jest and React Testing Library for unit testing and Detox for E2E testing.

Unit Testing

To run the unit tests, run the following command:

npm run test

E2E Testing

To run the E2E tests, you first need to run the following command:

Then, you can run the following command to run the E2E tests:

npm run e2e:ios
# Or
npm run e2e:android

Library Usage Guide

Global Dependencies

Components

VideoPlayer

Dependencies

VirtualizedList

IMPORTANT: Ensure to add the following code inside your babel.config.js file to properly configure the React Native Reanimated plugin:

module.exports = {
  plugins: ['react-native-reanimated/plugin'],
};

Android Permissions

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

react native icons

Android setup