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

@yuriazevedo/rnw-components

v0.4.0

Published

Solução de compartilhamento de código entre múltiplas plataformas, através de uma biblioteca de componentes acessíveis e customizáveis, utilizando React Native Web, Atomic Design, Storybook e Typescript.

Downloads

9

Readme

Projeto

Solução de compartilhamento de código entre múltiplas plataformas, através de uma biblioteca de componentes acessíveis e customizáveis, utilizando React Native Web, Atomic Design, Storybook e Typescript.

Stack

Esse projeto foi desenvolvido com as seguintes tecnologias:

Instalação em outro projeto

  1. Instale a bibliteca em seu projeto React/React Native/Expo:
yarn add @yuriazevedo/rnw-components
  1. Instale a dependência nativa (utilize expo install caso seja um projeto Expo):
yarn add react-native-vector-icons
  1. Agora instale as dependências:
yarn add styled-components styled-system
  1. Caso seu projeto utilize Typescript, instale as seguintes tipagens:
yarn add @types/styled-components @types/styled-components-react-native @types/styled-system -D
  1. Configurações extras para a Web
  • Exemplo da propriedade module.rules dentro do webpack config:
{
  test: /\.(jpg|png|woff|woff2|eot|ttf|svg)$/,
  loader: 'file-loader',
},
{
  test: /\.(ts|js)x?$/,
  exclude: /node_modules[/\\](?!react-native-vector-icons)/,
  use: {
    loader: 'babel-loader',
    options: {
      presets: [
        ['@babel/preset-env', { useBuiltIns: 'usage' }],
        '@babel/preset-react',
        "@babel/preset-typescript"
      ],
      plugins: [
        '@babel/plugin-proposal-class-properties',
        '@babel/plugin-proposal-object-rest-spread'
      ],
    },
  },
},

Utilizando o projeto

  1. Clone o repositório utilizando:
[email protected]:yuriazevedo11/monografia.git
  1. Entre na pasta do repositório:
cd monografia
  1. Agora é só instalar as dependências do projeto:
yarn # Equivalente a yarn install
yarn pod # Caso esteja rodando em um ambiente MacOS

Utilizando o Storybook

Ambiente Web

  1. Basta rodar o comando :
yarn storybook-web

Ambiente Android e iOS

  1. Inicie o Storybook com:
yarn storybook
  1. Em seguida inicie o Metro do React Native:
yarn start
  1. Agora rode o comando de acordo com a plataforma desejada:
yarn android
yarn ios # É necessário um ambiente MacOS
  1. Caso o Storybook não esteja reconhendo os emuladores basta rodar o comando:
yarn reverse

OBS: Os emuladores costumam abrir sozinhos após passo 3, caso seu ambiente esteja configurado corretamente com Android Studio ou Xcode (no caso de MacOS). Se ele não abrir sozinho, basta abrir o emulador antes de rodar o comando anterior.