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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-lab

v1.2.0

Published

A CLI tool to setup react-native project with some pre-defined configurations.

Downloads

272

Readme

Github License

Github License

GITHUB
Github Version Github Repo Created At Github Repo Contributors Github Repo Fork NPM Package

NPM
NPM Package Version NPM Package Last Updated NPM Package Downloads

react-native-lab is a cli tool to set up a React Native project with some pre-defined configurations. This tool helps you quickly set up a React Native development environment, including installing necessary dependencies like JDK, Android Studio.

This project is inspired by the simplicity and effectiveness of create-next-app.

  1. Installs JDK (OpenJDK): Automatically installs the necessary JDK for Android development.

  2. Installs Android Studio: Sets up Android Studio, including the necessary SDKs and tools.

  3. Sets Environment Variables: Configures system environment variables such as ANDROID_HOME, ANDROID_SDK_ROOT, and JAVA_HOME.

  4. Pre-built Templates: Choose from a variety of pre-built templates to kickstart your React Native project.

    • Blank
    • Bottom Navigation
    • Drawer Navigation
    • Stack Navigation
  5. Project Structure: Creates an src folder for you want.

  6. Cross-Platform Support: Works on Windows, macOS, and Linux.

  7. Environment Setup:

    • Sets up a .env file for managing environment variables.
    • Offers choice between react-native-config and react-native-dotenv for handling environment variables.
  8. Alias Configuration: Configures path aliases for cleaner and more manageable imports.

  9. NativeWind Integration: Install and configure NativeWind for styling.

  10. React Native Version Selection: Allows you to set up the project with your preferred React Native version.

  11. Console Remover: Automatically removes console logs in production builds, enhancing security and slightly reducing app size.

  12. Custom Hooks: Option to include a set of useful custom hooks:

    • useDebounce: Delays invoking a function until after a wait period.
    • useThrottle: Limits the rate at which a function can fire.
    • usePrevious: Accesses the previous value of a state or prop.
    • useOrientation: Detects and responds to device orientation changes.
    • useResponsiveLayout: Provides responsive layout information based on screen size.

Custom Hooks

Here are the available templates you can use with react-native-lab:

  • Node.js (v18 or higher)
  • npm (v6 or higher)

To get started with react-native-lab, follow these steps:

  1. Ensure you have all the prerequisites installed on your system.
  2. You can use npx to run the tool without installing it:
    npx react-native-lab@latest
  • Installation Errors: Ensure you have the correct versions of Node.js and npm installed. Try clearing the npm cache:
    npm cache clean --force
  • Permission Errors: Run the command with elevated privileges (e.g., using sudo on macOS/Linux or running the terminal as an administrator on Windows).

If you need further assistance, you can:

  • Check the GitHub Issues for similar problems.
  • Open a new issue with detailed information about your problem.
  • Reach out to the community for support.

By following these steps, you should be able to resolve most issues and get your React Native project up and running smoothly.

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature).
  6. Open a pull request.

Please make sure to follow the project's coding guidelines and standards.

This project is licensed under the MIT License. See the LICENSE file for details.

For a detailed list of changes and updates, please refer to the Changelog.