The latest and greatest boilerplate for Infinite Red opinions
This is the boilerplate that Infinite Red uses as a way to test bleeding-edge changes to our React Native stack.
yarn
yarn start
To make things work on your local simulator, or on your phone, you need first to run eas build
. We have many shortcuts on package.json
to make it easier:
yarn build:ios:sim # build for ios simulator
yarn build:ios:dev # build for ios device
yarn build:ios:prod # build for ios device
This directory is designed to organize and store various assets, making it easy for you to manage and use them in your application. The assets are further categorized into subdirectories, including icons
and images
:
assets
├── icons
└── images
icons This is where your icon assets will live. These icons can be used for buttons, navigation elements, or any other UI components. The recommended format for icons is PNG, but other formats can be used as well.
Ignite comes with a built-in Icon
component. You can find detailed usage instructions in the docs.
images This is where your images will live, such as background images, logos, or any other graphics. You can use various formats such as PNG, JPEG, or GIF for your images.
Another valuable built-in component within Ignite is the AutoImage
component. You can find detailed usage instructions in the docs.
How to use your icon
or image
assets:
import { Image } from 'react-native';
const MyComponent = () => {
return (
<Image source={require('../assets/images/my_image.png')} />
);
};
Follow our Maestro Setup recipe.
Ignite Cookbook is an easy way for developers to browse and share code snippets (or “recipes”) that actually work.
Read our Upgrade Guide to learn how to upgrade your Ignite project.
⭐️ Help us out by starring on GitHub, filing bug reports in issues or ask questions.
💬 Join us on Slack to discuss.
📰 Make our Editor-in-chief happy by reading the React Native Newsletter.