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

react-native-template-amela

v1.1.4

Published

Amela's React Native Template

Downloads

5

Readme

This project was developed by Amela Technology

Below you'll find information about performing common tasks.

Table of Contents

  • Introduction
  • A. Getting started
  • B. Available scripts
  • C. Common errors
  • D. Template folder structures
  • E. Document run and deploy
  • F. Roadmap

Introduction

  • Easy to start
  • React-native version 0.75.1
  • Fully using typescript for typing
  • Folder structure using package-by-feature (why)
  • Redux-toolkit, redux-saga, redux-persist, redux-logger
  • React-navigation v6
  • 100% functional component with hooks
  • A lot of custom/base components
  • i18next for multiple languages
  • Custom hooks for share state logic between components
  • Eslint with Prettier plugin for checking code convention
  • Husky for pre-commit (we check lint to make sure we have no errors first when commit)

A. Getting started

[!] Note before installation

  • NodeJS version must be >= version 18
  • Android Studio must be >= version Koala
  • CocoaPods must be >= version 1.15.2
  • Must install patch-package.
  • This template uses Yarn 3 locally

Installation

  1. Use yarn [Recommended]
  • Must installed yarn before.

  • npx react-native init your-project-name --template react-native-template-amela --pm yarn --skip-git-init true --install-pods true --verbose

    npx react-native init TestProject --template react-native-template-amela --pm yarn --skip-git-init true --install-pods true --verbose

  1. Use npm
  • npx react-native init your-project-name --template react-native-template-amela --skip-git-init true --install-pods true --verbose

    npx react-native init TestProject --template react-native-template-amela --skip-git-init true --install-pods true --verbose

[!] Note after installation

  • Copy all installed files and folders into your GIT project.
  • Copy .gitignore file from THIS REPOSITORY into your GIT project (.gitignore is removed while npx react-native init)
  • Duplicate file .env.development from folder environment to your root project. Rename to .env https://prnt.sc/K23PXoWJ19tn

~~Some manual setups (Deprecated)~~

~~1. Setup react-native config (Amela-style) following guide (deprecated - need upgrade): https://docs.google.com/document/d/1sPg4N7iXEgD_NzbXBRD_SzHPo4p48uJIgG_fC9hK48s |~~ ~~2. Setup modalize following guide: https://jeremybarbet.github.io/react-native-modalize/#/INSTALLATION~~


B. Available Scripts

If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.

npm start or yarn start

Runs your app in development mode.

npm start  --reset-cache
# or
yarn start  --reset-cache

npm test or yarn test (in development)

Runs the jest test runner on your tests.

yarn commit

Show list commit types to choose and execute commits (using commit-lint).


C. Common errors


D. Document run and deploy

Document run and deploy

F. Road-map

  • [x] Convert base into react-native-cli template.
  • [ ] New way of using react-hook-form.
  • [ ] Move to Expo template.