Here are the differences from the upstream:
- setIcon now exits the process with code 1 when sharp throws errors,
- non rectangular image is now resized as expected, previously it was ignored and no icon was generated,
- alpha is now removed using flatten rather than removeAlpha which produces very ugly results
- updated dependencies
In your react-native project folder, run:
yarn add -D Ribbon-Experiences/react-native-make
# OR
npm i -D Ribbon-Experiences/react-native-makeAnd go into your package.json and edit the @momence/react-native-make into "@bam.tech/react-native-make":. THis is needed for this to work in react-native as a plugin.
Please note: This plugin only supports react-native-cli v2+
Once installed, plugins are available through the React Native CLI
You can get the list of available plugins by running react-native -h within your project's folder
| Command | Description |
|---|---|
| set-icon | generate platform specific app icons |
| set-splash | generate platform specific splash screens |
- Pull latest version
cd react-native-make- Run
yarnthenyarn link - Launch a new project with
react-native init - In your React Native project,
yarn link @bam.tech/react-native-make - In the package.json of your React Native project, in dependencies add "@bam.tech/react-native-make" : "0.0.0"
Since 3.0.0, splashscreens for iOS are created via Xcode’s storyboard, so as to meet Apple's new requirements as of April 2020.
Disclaimer: To better understand your usage of this tool, basic analytics have been enabled. It only records commands usage as anonymous page views and does not identify users in any way
