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

logbook-mobile-components

v0.6.5-rc2

Published

Logbook Mobile Components Library

Downloads

11

Readme

README

Logbook Mobile Components Library

What is this repository for?

This is a set of React-Native components built in isolation that can be used in a React-Native app

Usage in a React-Native app

yarn add logbook-mobile-components

import { Screen } from 'logbook-mobile-components';

render() {
	<Screen></Screen>
}

Set Up

This project is using Storybook for React-Native, setup and usage can be found here: https://github.com/storybooks/storybook/tree/master/app/react-native The order of the steps is mandatory, wait for each of them to finish after you run the next one, all watchers should stay opened in its own terminal

Install modules

yarn install

Start typescript watcher

yarn tsc -w

Start storybook

yarn storybook

Start ios app

react-native run-ios

You should be able to open the browser on http://localhost:7007/
You should see the ios simulator running

Creating Components

Creating the component for the app

  • Create a folder for your component inside src/components
  • Export the component inside src/components/index.ts

Adding the component to Storybook

  • Create a new story for your component with your choice of knobs and actions inside src/stories/index.ts

More information on knobs and actions can be found below:
Knobs: https://github.com/storybooks/storybook/tree/master/addons/knobs
Actions: https://github.com/storybooks/storybook/tree/master/addons/actions

The stories with all the components examples are in src/stories/index.tsx
You should be able to navigate in the browser and see the changes in the simulator

Updating Components

Updating the Logbook Font

  • All you need to do is replace the following files: src/Assets/fonts/selection.json and src/Assets/fonts/icomoon.ttf

Publish npm module

Once the component has been created it's time to publish it to .npm for everyone to use or publish it for local usege.

Publishing to .npm

Make sure you have an .npm account and you've been added in.

Update version number
  • Inside the package.json file bump up the version number by one
Rebuild the folder
  • Delete the build folder and start yarn again to rebuild
Publishing
  • Open terminal and enter in the following:
npm login
npm publish

Publishing locally

Creates global link
  • Run following command from the logbook.mobile.components project
npm link
Link-install the package
  • Run following command from the logbook.mobile project to add the local build logbook.mobile.components npm module
npm link logbook-mobile-components

Done! Check it out here: https://www.npmjs.com/package/logbook-mobile-components