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

@brandingbrand/flagship

v11.88.1

Published

## Environment Requirements

Downloads

2,239

Readme

Flagship

Environment Requirements

  • node 8+, yarn 1.5+
  • watchman brew install watchman
  • react-native-cli yarn global add react-native-cli
  • iOS Development Environment
    • cocoapods v1.5+ brew install cocoapods
    • Xcode 9
  • Android Development Environment
    • Follow the steps here

How to add icons and a launch screen

Launch screens and icons can be configured through the project's env/env.[env_name].js file using the appIconDir and launchScreen keys:

module.exports = {
  ....
  "appIconDir": {
    "ios": "src/assets/appIcon/ios",
    "android": "src/assets/appIcon/android"
  },
  "launchScreen": {
    "ios": {
      "images": "src/assets/launchScreen/ios/Images.xcassets",
      "xib": "src/assets/launchScreen/ios/LaunchScreen.xib"
    },
    "android": "src/assets/launchScreen/android"
  }
}

Upon running flagship init the specified files will be copied to the native code and override the default icon and launch screen.

Files under src/assets/appIcon/ios

Contents.json
icon120x120.png   // 120 × 120
icon180x180.png   // 180 × 180
icon40x40.png     // 40 × 40
icon58x58.png     // 58 × 58
icon60x60.png     // 60 × 60
icon80x80.png     // 80 × 80
icon87x87.png     // 87 × 87

Files under src/assets/appIcon/android

mipmap-hdpi
└── ic_launcher.png   // 72 × 72
mipmap-mdpi
└── ic_launcher.png   // 48 × 48
mipmap-xhdpi
└── ic_launcher.png   // 96 × 96
mipmap-xxhdpi
└── ic_launcher.png   // 144 × 144

src/assets/launchScreen/ios/Images.xcassets should be an asset catalog of any resources used in the launch screen xib file.

src/assets/launchScreen/ios/LaunchScreen.xib should be a launch screen xib file.

Files under src/assets/launchScreen/android

drawable-hdpi
└── screen.png   // 480 × 800
drawable-mdpi
└── screen.png   // 320 × 480
drawable-xhdpi
└── screen.png   // 720 × 1280
drawable-xxhdpi
└── screen.png   // 960 × 1600