@brandingbrand/flagship
## Environment Requirements
Last updated 3 days ago by branderbrett .
MIT · Original npm · Tarball · package.json
$ cnpm install @brandingbrand/flagship 
SYNC missed versions from official npm registry.

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

Current Tags

  • 8.2.0-rnn2.0                                ...           canary (a month ago)
  • 7.6.0                                ...           latest (3 days ago)

286 Versions

  • 7.6.0                                ...           3 days ago
  • 7.5.4                                ...           10 days ago
  • 7.4.3                                ...           19 days ago
  • 7.4.2                                ...           20 days ago
  • 8.2.0-rnn2.0                                ...           a month ago
  • 8.1.3-rnn2.0                                ...           a month ago
  • 8.1.1-rnn2.0                                ...           a month ago
  • 8.1.0-rnn2.0                                ...           a month ago
  • 7.4.1                                ...           a month ago
  • 7.4.0                                ...           a month ago
  • 7.3.0                                ...           a month ago
  • 7.2.0                                ...           a month ago
  • 7.1.1                                ...           a month ago
  • 8.0.2-rnn2.0                                ...           a month ago
  • 8.0.1-rnn2.0                                ...           2 months ago
  • 8.0.0-rnn2.0                                ...           2 months ago
  • 7.1.0                                ...           2 months ago
  • 6.0.0-rnn2.17                                ...           2 months ago
  • 7.0.0                                ...           2 months ago
  • 3.6.0                                ...           2 months ago
  • 3.5.1                                ...           2 months ago
  • 6.3.0                                ...           2 months ago
  • 6.2.0                                ...           2 months ago
  • 6.1.4                                ...           2 months ago
  • 6.0.0-alpha.16                                ...           2 months ago
  • 6.1.3                                ...           2 months ago
  • 6.1.0                                ...           2 months ago
  • 6.0.0-alpha.15                                ...           2 months ago
  • 5.0.1-alpha.15                                ...           2 months ago
  • 6.0.0                                ...           2 months ago
  • 6.0.0-alpha.13                                ...           3 months ago
  • 5.0.1-alpha.14                                ...           3 months ago
  • 5.3.0                                ...           3 months ago
  • 5.0.1-alpha.13                                ...           3 months ago
  • 5.2.0                                ...           3 months ago
  • 5.0.1-alpha.12                                ...           3 months ago
  • 5.1.1                                ...           3 months ago
  • 5.0.1-alpha.9                                ...           3 months ago
  • 5.1.0                                ...           3 months ago
  • 3.5.0                                ...           3 months ago
  • 3.4.0                                ...           3 months ago
  • 5.0.1-alpha.0                                ...           3 months ago
  • 5.0.0                                ...           3 months ago
  • 3.2.2-alpha.30                                ...           3 months ago
  • 3.3.0                                ...           4 months ago
  • 3.2.2-alpha.18                                ...           4 months ago
  • 3.2.2-alpha.15                                ...           4 months ago
  • 4.1.0                                ...           4 months ago
  • 3.2.2-alpha.10                                ...           4 months ago
  • 4.0.0                                ...           4 months ago
  • 4.0.0-alpha.3                                ...           4 months ago
  • 3.2.1                                ...           4 months ago
  • 4.0.0-alpha.2                                ...           4 months ago
  • 4.0.0-alpha.1                                ...           4 months ago
  • 4.0.0-alpha.0                                ...           4 months ago
  • 3.2.0                                ...           4 months ago
  • 3.1.1                                ...           5 months ago
  • 3.1.1-alpha.0                                ...           5 months ago
  • 3.1.0                                ...           5 months ago
  • 3.0.1-alpha.103                                ...           6 months ago
  • 3.0.1-alpha.102                                ...           6 months ago
  • 3.0.1-alpha.96                                ...           6 months ago
  • 3.0.1-alpha.95                                ...           6 months ago
  • 3.0.1-alpha.94                                ...           6 months ago
  • 3.0.1-alpha.93                                ...           6 months ago
  • 3.0.1-alpha.92                                ...           7 months ago
  • 3.0.1-alpha.91                                ...           7 months ago
  • 3.0.1-alpha.90                                ...           7 months ago
  • 3.0.1-alpha.89                                ...           7 months ago
  • 3.0.1-alpha.88                                ...           7 months ago
  • 3.0.1-alpha.85                                ...           7 months ago
  • 3.0.1-alpha.84                                ...           7 months ago
  • 3.0.1-alpha.83                                ...           7 months ago
  • 3.0.1-alpha.82                                ...           7 months ago
  • 3.0.1-alpha.81                                ...           7 months ago
  • 3.0.1-alpha.80                                ...           7 months ago
  • 3.0.1-alpha.79                                ...           7 months ago
  • 3.0.1-alpha.78                                ...           7 months ago
  • 3.0.1-alpha.77                                ...           7 months ago
  • 3.0.1-alpha.76                                ...           7 months ago
  • 3.0.1-alpha.75                                ...           7 months ago
  • 3.0.1-alpha.74                                ...           7 months ago
  • 3.0.1-alpha.73                                ...           7 months ago
  • 3.0.1-alpha.72                                ...           7 months ago
  • 3.0.1-alpha.70                                ...           7 months ago
  • 3.0.1-alpha.46                                ...           8 months ago
  • 3.0.1-alpha.45                                ...           8 months ago
  • 3.0.1-alpha.44                                ...           8 months ago
  • 3.0.1-alpha.43                                ...           8 months ago
  • 3.0.1-alpha.42                                ...           8 months ago
  • 3.0.1-alpha.40                                ...           8 months ago
  • 3.0.1-alpha.39                                ...           8 months ago
  • 3.0.1-alpha.38                                ...           8 months ago
  • 3.0.1-alpha.37                                ...           8 months ago
  • 3.0.1-alpha.35                                ...           8 months ago
  • 3.0.1-alpha.34                                ...           8 months ago
  • 3.0.1-alpha.32                                ...           8 months ago
  • 3.0.1-alpha.28                                ...           8 months ago
  • 3.0.1-alpha.27                                ...           8 months ago
  • 3.0.1-alpha.22                                ...           8 months ago
  • 3.0.1-alpha.20                                ...           8 months ago
  • 3.0.1-alpha.19                                ...           8 months ago
  • 3.0.1-alpha.18                                ...           8 months ago
  • 3.0.1-alpha.17                                ...           8 months ago
  • 3.0.1-alpha.16                                ...           8 months ago
  • 3.0.1-alpha.7                                ...           8 months ago
  • 3.0.1-alpha.6                                ...           9 months ago
  • 3.0.1-alpha.4                                ...           9 months ago
  • 3.0.1-alpha.3                                ...           9 months ago
  • 3.0.1-alpha.2                                ...           9 months ago
  • 3.0.0                                ...           9 months ago
  • 3.0.1-alpha.14                                ...           9 months ago
  • 3.0.1-alpha.13                                ...           9 months ago
  • 2.0.1-alpha.46                                ...           9 months ago
  • 2.0.1-alpha.45                                ...           9 months ago
  • 2.0.1-alpha.44                                ...           9 months ago
  • 2.0.1-alpha.42                                ...           9 months ago
  • 2.0.1-alpha.41                                ...           9 months ago
  • 3.0.1-alpha.1                                ...           9 months ago
  • 2.0.1-alpha.40                                ...           9 months ago
  • 2.0.1-alpha.39                                ...           9 months ago
  • 2.0.1-alpha.38                                ...           10 months ago
  • 2.0.1-alpha.37                                ...           10 months ago
  • 2.0.1-alpha.36                                ...           10 months ago
  • 2.0.1-alpha.35                                ...           10 months ago
  • 2.0.1-alpha.34                                ...           10 months ago
  • 2.0.1-alpha.33                                ...           10 months ago
  • 2.0.1-alpha.32                                ...           10 months ago
  • 2.0.1-alpha.31                                ...           10 months ago
  • 2.0.1-alpha.30                                ...           10 months ago
  • 2.0.1-alpha.28                                ...           10 months ago
  • 2.0.1-alpha.27                                ...           10 months ago
  • 2.0.1-alpha.26                                ...           10 months ago
  • 2.0.1-alpha.23                                ...           a year ago
  • 2.0.1-alpha.22                                ...           a year ago
  • 2.0.1-alpha.18                                ...           a year ago
  • 2.0.1-alpha.17                                ...           a year ago
  • 2.0.1-alpha.16                                ...           a year ago
  • 2.0.1-alpha.15                                ...           a year ago
  • 2.0.1-alpha.14                                ...           a year ago
  • 2.0.1-alpha.13                                ...           a year ago
  • 2.0.1-alpha.12                                ...           a year ago
  • 2.0.1-alpha.11                                ...           a year ago
  • 2.0.1-alpha.10                                ...           a year ago
  • 2.0.1-alpha.9                                ...           a year ago
  • 2.0.1-alpha.8                                ...           a year ago
  • 2.0.1-alpha.7                                ...           a year ago
  • 2.0.1-alpha.4                                ...           a year ago
  • 2.0.1-alpha.3                                ...           a year ago
  • 2.0.1-alpha.2                                ...           a year ago
  • 2.0.1-alpha.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 0.2.0-alpha.74e71f8c                                ...           a year ago
  • 0.2.0-alpha.03d713be                                ...           a year ago
  • 0.2.0-alpha.74b8b7f4                                ...           a year ago
  • 0.2.0-alpha.95dd219d                                ...           a year ago
  • 0.2.0-alpha.414d45f2                                ...           a year ago
  • 0.2.0-alpha.27bb3bd8                                ...           a year ago
  • 0.2.0-alpha.68357379                                ...           a year ago
  • 0.2.0-alpha.a96082b3                                ...           a year ago
  • 0.2.0-alpha.c7903ac2                                ...           a year ago
  • 0.2.0-alpha.c754ad35                                ...           a year ago
  • 0.2.0-alpha.adccb560                                ...           a year ago
  • 0.2.0-alpha.9426f892                                ...           a year ago
  • 0.2.0-alpha.b5f6b79d                                ...           a year ago
  • 0.2.0-alpha.8e9e5f73                                ...           a year ago
  • 0.2.0-alpha.e326bceb                                ...           a year ago
  • 0.2.0-alpha.cb1604dd                                ...           a year ago
  • 0.2.0-alpha.f2461fef                                ...           a year ago
  • 0.2.0-alpha.da0f2d11                                ...           a year ago
  • 0.2.0-alpha.8cc83689                                ...           a year ago
  • 0.2.0-alpha.47bc20f7                                ...           a year ago
  • 0.2.0-alpha.bbadd96c                                ...           a year ago
  • 0.2.0-alpha.41e794fd                                ...           a year ago
  • 0.2.0-alpha.7afadfed                                ...           a year ago
  • 0.2.0-alpha.3bf49fbd                                ...           a year ago
  • 0.2.0-alpha.1adff63a                                ...           a year ago
  • 0.2.0-alpha.3f287a06                                ...           a year ago
  • 0.2.0-alpha.be87dd01                                ...           a year ago
  • 0.2.0-alpha.837469bb                                ...           a year ago
  • 0.2.0-alpha.0bb130ca                                ...           a year ago
  • 0.2.0-alpha.bc4a19f7                                ...           a year ago
  • 0.2.0-alpha.a564fd22                                ...           a year ago
  • 0.2.0-alpha.864b0bb8                                ...           a year ago
  • 0.2.0-alpha.20a2b2ed                                ...           a year ago
  • 0.2.0-alpha.68b84b56                                ...           a year ago
  • 0.2.0-alpha.0f20dbf0                                ...           a year ago
  • 0.2.0-alpha.d2eafc2e                                ...           a year ago
  • 0.2.0-alpha.e2cc0f95                                ...           a year ago
  • 0.2.0-alpha.f4cb1884                                ...           a year ago
  • 0.2.0-alpha.a7e5bceb                                ...           a year ago
  • 0.2.0-alpha.14a5c57f                                ...           a year ago
  • 0.2.0-alpha.26a8dc9d                                ...           a year ago
  • 0.2.0-alpha.587df802                                ...           a year ago
  • 0.2.0-alpha.60583fda                                ...           a year ago
  • 0.2.0-alpha.0d466f67                                ...           a year ago
  • 0.2.0-alpha.8ce3cc7a                                ...           a year ago
  • 0.2.0-alpha.230cbfe8                                ...           a year ago
  • 0.2.0-alpha.79fd2218                                ...           a year ago
  • 0.2.0-alpha.83b6f01c                                ...           a year ago
  • 0.2.0-alpha.987931a8                                ...           a year ago
  • 0.2.0-alpha.1db13cba                                ...           a year ago
  • 0.2.0-alpha.23707849                                ...           a year ago
  • 0.2.0-alpha.21c2f4f6                                ...           a year ago
  • 0.2.0-alpha.49d305a0                                ...           a year ago
  • 0.2.0-alpha.61e2d50f                                ...           a year ago
  • 0.2.0-alpha.709ef378                                ...           a year ago
  • 0.2.0-alpha.5f599f3c                                ...           a year ago
  • 0.2.0-alpha.53dc2262                                ...           a year ago
  • 0.2.0-alpha.7ba6a941                                ...           a year ago
  • 0.2.0-alpha.409f7e9e                                ...           a year ago
  • 0.2.0-alpha.fed9b250                                ...           a year ago
  • 0.2.0-alpha.810c5dc1                                ...           a year ago
  • 0.2.0-alpha.3c023cbf                                ...           a year ago
  • 0.2.0-alpha.92e88d6d                                ...           a year ago
  • 0.2.0-alpha.0fc7e99d                                ...           a year ago
  • 0.2.0-alpha.3a450a5c                                ...           a year ago
  • 0.2.0-alpha.a63df2ca                                ...           a year ago
  • 0.2.0-alpha.f483bd88                                ...           a year ago
  • 0.2.0-alpha.f33a6b0c                                ...           a year ago
  • 0.2.0-alpha.a2323718                                ...           a year ago
  • 0.2.0-alpha.3d308725                                ...           a year ago
  • 0.2.0-alpha.442ed60e                                ...           a year ago
  • 0.2.0-alpha.c0ceb59d                                ...           a year ago
  • 0.2.0-alpha.0b0dd155                                ...           a year ago
  • 0.2.0-alpha.b64e30dd                                ...           a year ago
  • 0.2.0-alpha.700551d9                                ...           a year ago
  • 0.2.0-alpha.72c610d6                                ...           a year ago
  • 0.2.0-alpha.44a6626d                                ...           a year ago
  • 0.2.0-alpha.5a439850                                ...           a year ago
  • 0.2.0-alpha.50d491f0                                ...           a year ago
  • 0.2.0-alpha.d9a56009                                ...           a year ago
  • 0.2.0-alpha.46afc872                                ...           a year ago
  • 0.2.0-alpha.cd1cfac4                                ...           a year ago
  • 0.2.0-alpha.b4a85e8a                                ...           a year ago
  • 0.2.0-alpha.a84e12cd                                ...           a year ago
  • 0.2.0-alpha.0874d73b                                ...           a year ago
  • 0.2.0-alpha.288096b9                                ...           a year ago
  • 0.2.0-alpha.edb71636                                ...           a year ago
  • 0.2.0-alpha.d476994f                                ...           a year ago
  • 0.2.0-alpha.a677e08f                                ...           a year ago
  • 0.2.0-alpha.8195ad25                                ...           a year ago
  • 0.2.0-alpha.3971d89b                                ...           a year ago
  • 0.2.0-alpha.7f49f4e5                                ...           a year ago
  • 0.2.0-alpha.3f838cc9                                ...           a year ago
  • 0.2.0-alpha.943fe174                                ...           a year ago
  • 0.2.0-alpha.bd11590d                                ...           a year ago
  • 0.2.0-alpha.71820862                                ...           a year ago
  • 0.2.0-alpha.83aba47e                                ...           a year ago
  • 0.2.0-alpha.bc7219c1                                ...           a year ago
  • 0.2.0-alpha.a6ee192f                                ...           a year ago
  • 0.2.0-alpha.64333850                                ...           a year ago
  • 0.2.0-alpha.74aadba4                                ...           a year ago
  • 0.2.0-alpha.bbd56b44                                ...           a year ago
  • 0.2.0-alpha.d6236ad2                                ...           a year ago
  • 0.2.0-alpha.bb156bd9                                ...           a year ago
  • 0.2.0-alpha.b2a2bfc3                                ...           a year ago
  • 0.2.0-alpha.a0872f53                                ...           a year ago
  • 0.2.0-alpha.2383e1ac                                ...           a year ago
  • 0.2.0-alpha.808ad2a2                                ...           a year ago
  • 0.2.0-alpha.a834caa6                                ...           a year ago
  • 0.2.0-alpha.2105647                                ...           a year ago
  • 0.2.0-alpha.0880a1b5                                ...           a year ago
  • 0.2.0-alpha.33643ce7                                ...           a year ago
  • 0.2.0-alpha.cff15a98                                ...           a year ago
  • 0.2.0-alpha.f546f315                                ...           a year ago
  • 0.2.0-alpha.8d2fa0d5                                ...           a year ago
  • 0.2.0-alpha.0dbd965c                                ...           a year ago
  • 0.2.0-alpha.d53bf42b                                ...           a year ago
  • 0.2.0-alpha.9b3f5f43                                ...           a year ago
  • 0.2.0-alpha.bcdbbbc9                                ...           a year ago
  • 0.2.0-alpha.6db4b83c                                ...           a year ago
  • 0.2.0-alpha.e8c61611                                ...           a year ago
  • 0.2.0-alpha.02b91410                                ...           a year ago
  • 0.2.0-alpha.1c6ddbdd                                ...           a year ago
  • 0.2.0-alpha.331c05e7                                ...           a year ago
  • 0.2.0-alpha.159c4a6b                                ...           a year ago
  • 0.2.0-alpha.9a00966c                                ...           a year ago
  • 0.2.0-alpha.fad0a274                                ...           a year ago
  • 0.2.0-alpha.b606797b                                ...           a year ago
  • 0.2.0-alpha.eec415ab                                ...           a year ago
  • 0.2.0-alpha.0df49d9f                                ...           a year ago
  • 0.2.0-alpha.01da8a20                                ...           a year ago
  • 0.2.0-alpha.039a84f6                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.1.0-alpha.8204c6aa                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |