Skip to content

docs: set up ir-docs #2530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 71 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
d68f34c
chore: RN 0.72.0-rc.3 and Expo 49 alpha.3
frankcalise May 24, 2023
772f1de
chore: alpha4 expo 49 and RN rc6
frankcalise Jun 14, 2023
6c62b83
chore: package updates
frankcalise Jun 29, 2023
e64d38a
chore: merge branch 'master' into feat/rn-72-expo-49
frankcalise Jun 30, 2023
ca98ae8
chore: remove webpack-config dep, expo uses metro now
frankcalise Jun 30, 2023
0c77940
feat(web): metro over webpack for SDK 49
frankcalise Jun 30, 2023
ef58d4f
chore: tsc fix
frankcalise Jun 30, 2023
f10956a
Ignite Expresso (#2476 by @frankcalise)
frankcalise Jul 13, 2023
ed0b3af
docs(readme): move documentation link higher, update versions
frankcalise Jul 13, 2023
005c2de
feat(boilerplate): add in default eas.json for EAS Build
frankcalise Jul 13, 2023
bf300e1
chore(boilerplate): eas.json updates
frankcalise Jul 14, 2023
ea415d8
chore: cherry-pick 2e24ef8
mazenchami Jul 10, 2023
c3fd3c5
chore: remaining TS strict fixes
frankcalise Jul 14, 2023
6962ad7
feat(boilerplate): expo TS paths in favor of babel plugin
frankcalise Jul 14, 2023
c62ed38
fix(demo): podcast list data
frankcalise Jul 17, 2023
c4d79dd
fix(demo): tab icons
frankcalise Jul 17, 2023
434a4e8
fix(boilerplate): podfile.lock
frankcalise Jul 17, 2023
c240385
overloading Array.filter for the special case of the Boolean constructor
mazenchami Jul 17, 2023
735121b
fix(boilerplate): update reactotron deps, type fixes
frankcalise Jul 20, 2023
4a5e225
chore: gitignore for flame cli 🔥
frankcalise Jul 20, 2023
322975f
refactor(cli): rework experimental flag for more flexible options
frankcalise Jul 20, 2023
3044899
fix(cli): kebab-case over camelCase for flags
frankcalise Jul 20, 2023
dbcd641
fix(ReactotronConfig): update to chain
joshuayoes Jul 20, 2023
e94a25a
Merge branch 'master' into feat/rn-72-expo-49
jamonholmgren Jul 25, 2023
757f850
chore(boilerplate): remove native dirs
frankcalise Jul 26, 2023
2cecd7c
feat(cli): workflow options go/prebuild/manual
frankcalise Jul 26, 2023
cf24469
feat(boilerplate): add fabric bool to demo debug screen
frankcalise Jul 26, 2023
9502968
chore(boilerplate): dep updates
frankcalise Jul 26, 2023
653af08
fix(cli): workflow name value mapping
frankcalise Jul 26, 2023
d345de6
fix(cli): fix cache issue with tests
frankcalise Jul 26, 2023
0d1a8d9
docs(releasing-ignite): fixed package.json snippet to be more accurate
frankcalise Jul 27, 2023
af34b66
fix(cli): #2225 remove-demo finds all empty dirs
frankcalise Jul 27, 2023
99e5946
fix(boilerplate): #2230
frankcalise Jul 27, 2023
2ca37f7
chore(boilerplate): update reactotron deps
frankcalise Jul 27, 2023
74650b6
fix(cli): drop improper flag from prebuild
frankcalise Jul 28, 2023
7fd9e1b
feat(cli): add prebuild progress message
frankcalise Jul 28, 2023
688e553
fix(boilerplate): removed unnecessary expo deps
frankcalise Jul 28, 2023
efc5e1d
fix(cli): new arch bools before prebuild
frankcalise Jul 28, 2023
e5d045a
chore: dir clean up, win32 compat
frankcalise Aug 2, 2023
258e8c0
feat(boilerplate): config plugin scaffolding (#2487 by @frankcalise)
frankcalise Aug 4, 2023
65c4d0b
fix(cli): new arch toggle
frankcalise Aug 5, 2023
11cc2c8
docs(readme): add more badges
frankcalise Aug 5, 2023
ea88b0c
docs(readme): remove expo badge
frankcalise Aug 5, 2023
b13852b
Merge branch 'master' into feat/rn-72-expo-49
frankcalise Aug 8, 2023
7d8eef5
Update README.md
frankcalise Aug 22, 2023
ba65810
chore(boilerplate): remove unused overrides
frankcalise Aug 22, 2023
9a37093
fix(boilerplate): better new arch support
frankcalise Aug 23, 2023
eecac88
chore(boilerplate) Update react-native to 0.72.5 (#2505)
markrickert Sep 28, 2023
7d78fc6
feat(cli): add bun support (#2497 by @frankcalise @jamonholmgren)
frankcalise Oct 1, 2023
4f03467
chore: Merge branch 'master' into feat/rn-72-expo-49
frankcalise Oct 1, 2023
9b768dd
Merge branch 'master' into feat/rn-72-expo-49
frankcalise Oct 3, 2023
fce89e1
fix(cli): Expo Go compat deps (#2508 by @frankcalise and @markrickert)
frankcalise Oct 3, 2023
19a0aff
fix(boilerplate): update type import
frankcalise Oct 4, 2023
b1b33c2
fix: ios compiling issue when the user specifies the new architecture…
markrickert Oct 10, 2023
bddaea5
Merge branch 'master' into feat/rn-72-expo-49
frankcalise Oct 10, 2023
1ac2870
feat(boilerplate) `@shopify/flash-list` integration and ListView HOC …
markrickert Oct 11, 2023
23c3953
Merge branch 'master' into feat/rn-72-expo-49
frankcalise Oct 11, 2023
c484e3d
fix(boilerplate): inherit default metro from expo (#2526 by @frankcal…
frankcalise Oct 17, 2023
d1968de
fix(web): Fixes web implementation (#2528)
markrickert Oct 17, 2023
334b8bb
docs: ir-docs dir structure
frankcalise Oct 19, 2023
71ef751
chore(docs): Cleanup
markrickert Oct 20, 2023
69a8df8
docs(upgrades): go/prebuild notes
frankcalise Oct 22, 2023
c44bbff
Merge branch 'master' into docs/ir-docs
jamonholmgren Nov 25, 2023
a1a4ba8
Align with master
jamonholmgren Nov 25, 2023
22729f9
Merge branch 'master' into docs/ir-docs
frankcalise Dec 8, 2023
7ce87f4
docs(readme): point to hosted site
frankcalise Dec 13, 2023
a5471f7
docs(readme): link directly to md for now
frankcalise Dec 13, 2023
2cf7a74
docs: ir-doc release prep
frankcalise Dec 13, 2023
888db2a
docs: added cli options
frankcalise Dec 13, 2023
2e7b2c5
docs: rework landing for getting started
frankcalise Dec 13, 2023
3c46eaf
ci(ir-docs): orb setup
frankcalise Dec 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ defaults: &defaults
working_directory: /mnt/ramdisk/repo

version: 2.1

parameters:
"force-release-docs":
type: boolean
default: false

orbs:
publish-docs: infinitered/publish-docs@0.4.9
jobs:
tests:
<<: *defaults
Expand Down Expand Up @@ -81,6 +89,19 @@ jobs:
name: Publish to npm
command: yarn ci:publish # this will be added to your package.json scripts

# Publishing docs details
publish-details: &publish-details
description: "Infinite Red's hottest boilerplate for React Native."
git_email: "ci@infinite.red"
git_username: "Infinite Red CI"
label: "Ignite"
project_name: "ignite-cli"
source_docs_dir: docs
source_repo_directory: "source"
target_docs_dir: "docs"
target_repo: "git@github.com:infinitered/ir-docs.git"
target_repo_directory: "target"

workflows:
version: 2
test_and_release:
Expand All @@ -93,3 +114,23 @@ workflows:
filters:
branches:
only: master
release-docs:
when:
and:
- not: << pipeline.parameters.force-release-docs >>
- true # Placeholder for correct YAML structure
jobs:
- publish-docs/publish_docs:
<<: *publish-details
filters:
branches:
only:
- master
tags:
only:
- '*v[0-9]+\.[0-9]+\.[0-9]+'
force-release-docs:
when: << pipeline.parameters.force-release-docs >>
jobs:
- publish-docs/publish_docs:
<<: *publish-details
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This is the React Native boilerplate that the [Infinite Red](https://infinite.re

Check out the [Getting Started with Ignite](https://www.youtube.com/watch?v=KOSvDlFyg20) video for a 13 minute overview!

## [Full Documentation](https://github.com/infinitered/ignite/blob/master/docs)
## [Full Documentation](https://github.com/infinitered/ignite/blob/master/docs/README.md)

We've put great effort into the documentation as a team, please [read through it here](https://github.com/infinitered/ignite/blob/master/docs). If you're unsure why a certain decision was made related to this boilerplate or how to proceed with a particular feature, it's likely documented. If it still isn't clear, go through the proper [help channels](#reporting-bugs--getting-help) and we always welcome PRs to improve the docs!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When ir-docs goes live this will be `https://docs.infinite.red/ignite


Expand Down Expand Up @@ -47,7 +47,7 @@ Nothing makes it into Ignite unless it's been proven on projects that Infinite R
| date-fns | Date library | v2 | Excellent date library |
| FlashList | FlatList replacement | v1 | A performant drop-in replacement for FlatList |

Ignite also comes with a [component library](https://github.com/infinitered/ignite/blob/master/docs/Components.md) that is tuned for custom designs, theming support, testing, custom fonts, generators, and much, much more.
Ignite also comes with a [component library](./docs/boilerplate/components/Components.md) that is tuned for custom designs, theming support, testing, custom fonts, generators, and much, much more.

## Quick Start

Expand All @@ -66,7 +66,7 @@ npx ignite-cli@latest new PizzaApp
npx ignite-cli@latest new PizzaApp --yes
```

Once you're up and running, check out our new [Getting Started Guide](https://github.com/infinitered/ignite/blob/master/docs/Guide.md) guide or the rest of our [docs](https://github.com/infinitered/ignite/blob/master/docs).
Once you're up and running, check out our new [Getting Started Guide](/docs/Guide.md) guide or the rest of our [docs](https://github.com/infinitered/ignite/blob/master/docs).

If you'd like to follow a tutorial, check out [this one from Robin Heinze](https://shift.infinite.red/creating-a-trivia-app-with-ignite-bowser-part-1-1987cc6e93a1). _Note that this was created for a previous version of Ignite -- we are working on updating it!_

Expand All @@ -78,7 +78,7 @@ _The hidden gem of Ignite._ Generators help you scaffold your app very quickly,
npx ignite-cli generate --help
```

...will give you information on what generators are present. To learn more, check out our [Generators](https://github.com/infinitered/ignite/blob/master/docs/Generators.md) documentation.
...will give you information on what generators are present. To learn more, check out our [Generators](/docs/concept//Generators.md) documentation.

### Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}
},
"engines": {
"node": ">=18"
"node": ">=16"
},
"prettier": {
"printWidth": 100,
Expand Down
22 changes: 13 additions & 9 deletions docs/Guide.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
sidebar_position: 2
---

# Getting Started Guide

## What is Ignite?
Expand All @@ -16,24 +20,24 @@ npx ignite-cli@latest new PizzaApp

It'll walk you through several questions.

Once it's up and running, you can use the Ignite CLI to [generate](./Generators.md) components, screens, MST models, and more.
Once it's up and running, you can use the Ignite CLI to [generate](./concept/Generators.md) components, screens, MST models, and more.

Running into errors? have a look at [upgrading Ignite CLI](./Upgrading-Ignite.md)
Running into errors? have a look at [upgrading Ignite CLI](./cli/Upgrading-Ignite.md)

### Ignite Boilerplate

Your new Ignite project (whether you start with Expo or not) comes with a full stack of useful libraries, pre-set up for you so you can start coding.

- React Native
- React Navigation
- MobX-State-Tree [(Why not Redux?)](https://github.com/infinitered/ignite/blob/master/docs/MobX-State-Tree.md)
- MobX-State-Tree [(Why not Redux?)](./concept/MobX-State-Tree.md)
- MobX-React-Lite
- TypeScript
- AsyncStorage (integrated with MST for restoring state)
- apisauce (to talk to REST servers)
- Reactotron-ready (and pre-integrated with MST)
- Supports Expo (and Expo web) out of the box
- About a dozen prebuilt [components](./Components.md) to build out your UI with
- About a dozen prebuilt [components](./boilerplate/components/Components.md) to build out your UI with
- And more!

## Where do I start?
Expand All @@ -48,23 +52,23 @@ We use React Navigation v6 in the current version of Ignite. You'll find any nav

There's also a `navigationUtilities.ts` file which provides some utility functions we find useful in building apps, such as `getActiveRouteName`, `useBackButtonHandler` and `useNavigationPersistence`.

Learn more in our [Navigation](./Navigation.md) documentation.
Learn more in our [Navigation](./concept/Navigation.md) documentation.

### Components

Ignite comes with some prebuilt, flexible, and customizable components. Unlike most component libraries, it's not built to drop in out of the box, but rather with custom design in mind (you do have a nice, custom design, don't you?)

Ignite works fine with other component libraries, but the built-in component system works the best for custom-designed apps.

Check out the [Components](./Components.md) documentation.
Check out the [Components](./boilerplate/components/Components.md) documentation.

### Testing

Ignite is pre-configured to use Jest for unit tests.

Ignite includes samples of UI end-to-end tests using [Maestro](https://maestro.mobile.dev/). See our [Ignite Cookbook recipe](https://ignitecookbook.com/docs/recipes/MaestroSetup) for setup and walkthrough of the test samples or check out Maestro's docs on [Installing Maestro](https://maestro.mobile.dev/getting-started/installing-maestro) to run the flows.

You can learn more about why we chose these tests and how to use them in the [Testing](./Testing.md) docs.
You can learn more about why we chose these tests and how to use them in the [Testing](./concept/Testing.md) docs.

### Styling

Expand All @@ -88,6 +92,6 @@ const MyComponent = () => {
}
```

Very often, we use [components with presets](./Components.md) to share styles across our whole app.
Very often, we use [components with presets](./boilerplate/components/Components.md) to share styles across our whole app.

Read more about styling in the [Styling](./Styling.md) docs.
Read more about styling in the [Styling](./concept/Styling.md) docs.
107 changes: 70 additions & 37 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,72 @@
---
sidebar_position: 1
---

# Welcome to Ignite documentation!

Check out this list of topics:

- [Getting Started Guide](./Guide.md) - If you're new to Ignite, start here
- [Components](./Components.md) - Ignite's built-in UI components
- [AutoImage](./Components-AutoImage.md)
- [Button](./Components-Button.md)
- [Card](./Components-Card.md)
- [EmptyState](./Components-EmptyState.md)
- [Header](./Components-Header.md)
- [Icon](./Components-Icon.md)
- [ListItem](./Components-ListItem.md)
- [ListView](./Components-ListView.md)
- [Screen](./Components-Screen.md)
- [Text](./Components-Text.md)
- [TextField](./Components-TextField.md)
- [Utils](./Utils.md) - Collection of helpful utilities
- [useSafeAreaInsetsStyle](./Utils-useSafeAreaInsetsStyle.md)
- [useHeader](./Utils-useHeader.md)
- [Theming](./Theming.md) - How to customize the look and feel of your app
- [Colors & Palettes](./Theming-Colors-And-Palettes.md) - Explanation of our palette-based approach to colors
- [Fonts & Typography](./Theming-Fonts-And-Typography.md) - How we define fonts in a semantic way
- [Spacing](./Theming-Spacing.md) - How to approach consistent spacing throughout your Ignite app
- [Styling](./Styling.md) - How we approach styling components in Ignite
- [Navigation](./Navigation.md) - How [React Navigation](https://reactnavigation.org/docs/getting-started/) is used to navigate through your screens
- [Testing](./Testing.md) - How to test your Ignite app
- [Generators](./Generators.md) - Everything you need to know about Ignite generators
- [Generator Templates](./Generator-Templates.md) - Writing your own generator templates
- [Folder-Structure](./Folder-Structure.md) - An explanation of the Ignite folder structure
- [Why MobX-State-Tree?](./MobX-State-Tree.md) - All about MobX-State-Tree, and why we use it instead of Redux
- [Expo and Ignite](./Expo-and-Ignite.md) - How Expo fits in with Ignite, and whether you should use it
- [TypeScript](./TypeScript.md) - An explanation of TypeScript in Ignite and lots of resources
- [Upgrading Ignite](./Upgrading-Ignite.md) - How to upgrade your app to the latest and greatest Ignite patterns
- [Tour of Ignite](./Tour-of-Ignite.md) - Tour of the Ignite code base for interested contributors
- [Releasing Ignite](./Releasing-Ignite.md) - How we release Ignite
- [Internationalization](./Internationalization.md) — How to Internationalize your app
- [Backend API Integration](./Backend-API-Integration.md) - An explanation of Ignite's basic API setup
- [Remove Demo Code](./Remove-Demo-Code.md) - A quick guide on how to remove Ignite's demo code via command line
## Getting Started

### Quick Start

```terminal
npx ignite-cli@latest new pizza-app --yes
```

### Full Guide

If you're new to Ignite, start by reading our [Getting Started Guide](./Guide.md)!

### Intro Video

Check out the [Getting Started with Ignite](https://www.youtube.com/watch?v=KOSvDlFyg20) video for a 13 minute overview!

## Proven React Native boilerplate

The culmination of over seven years of constant React Native development, Ignite is the most popular React Native app boilerplate for both Expo and bare React Native.

This is the React Native boilerplate that the [Infinite Red](https://infinite.red) team uses on a day-to-day basis to build client apps. Developers who use Ignite report that it saves them two to four weeks of time on average off the beginning of their React Native project!

## Usage

- [Command-line Interface (CLI)](./cli/Ignite-CLI.md)
- [Remove Demo Code](./cli/Remove-Demo-Code.md) - A quick guide on how to remove Ignite's demo code via command line
- [Troubleshooting](./cli/Troubleshooting.md)
- [Components](./boilerplate/components/Components.md) - Ignite's built-in UI components
- [AutoImage](./boilerplate/components/AutoImage.md)
- [Button](./boilerplate/components/Button.md)
- [Card](./boilerplate/components/Card.md)
- [EmptyState](./boilerplate/components/EmptyState.md)
- [Header](./boilerplate/components/Header.md)
- [Icon](./boilerplate/components/Icon.md)
- [ListItem](./boilerplate/components/ListItem.md)
- [ListView](./boilerplate/components/ListView.md)
- [Screen](./boilerplate/components/Screen.md)
- [Text](./boilerplate/components/Text.md)
- [TextField](./boilerplate/components/TextField.md)
- [Concepts](./concept/Concepts.md) - An overview of the concepts behind developing with Ignite

- [Backend API Integration](./concept/Backend-API-Integration.md) - An explanation of Ignite's basic API setup
- [Expo and Ignite](./concept/Expo-and-Ignite.md) - How Expo fits in with Ignite, and whether you should use it
- [Folder-Structure](./concept/Folder-Structure.md) - An explanation of the Ignite folder structure
- [Generators](./concept/Generators.md) - Everything you need to know about Ignite generators
- [Generator Templates](./concept/Generator-Templates.md) - Writing your own generator templates
- [Internationalization](./concept/Internationalization.md) — How to Internationalize your app
- [Why MobX-State-Tree?](./concept/MobX-State-Tree.md) - All about MobX-State-Tree, and why we use it instead of Redux
- [Navigation](./concept/Navigation.md) - How [React Navigation](https://reactnavigation.org/docs/getting-started/) is used to navigate through your screens
- [Styling](./concept/Styling.md) - How we approach styling components in Ignite
- [Testing](./concept/Testing.md) - How to test your Ignite app
- [TypeScript](./concept/TypeScript.md) - An explanation of TypeScript in Ignite and lots of resources
- [Upgrades](./concept/Upgrades.md) - How to upgrade your app to the latest and greatest Ignite patterns

- [Theming](./boilerplate/theming/Theming.md) - How to customize the look and feel of your app
- [Colors & Palettes](./boilerplate/theming/Colors-And-Palettes.md) - Explanation of our palette-based approach to colors
- [Fonts & Typography](./boilerplate/theming/Fonts-And-Typography.md) - How we define fonts in a semantic way
- [Spacing](./boilerplate/theming/Spacing.md) - How to approach consistent spacing throughout your Ignite app
- [Utils](./boilerplate/utility/Utils.md) - Collection of helpful utilities
- [useSafeAreaInsetsStyle](./boilerplate/utility/useSafeAreaInsetsStyle.md)
- [useHeader](./boilerplate/utility/useHeader.md)

## Contributing

- [Tour of Ignite](./contributing/Tour-of-Ignite.md) - Tour of the Ignite code base for interested contributors
- [Releasing Ignite](./contributing/Releasing-Ignite.md) - How we release Ignite
12 changes: 12 additions & 0 deletions docs/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"label": "Ignite",
"link": null,
"customProps": {
"description": "The battle-tested React Native boilerplate",
"projectName": "ignite",
"sidebar": {
"type": "autogenerated",
"dirName": "ignite"
}
}
}
30 changes: 15 additions & 15 deletions docs/Folder-Structure.md → docs/boilerplate/Boilerplate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Explanation of folder structure
# Explanation of the Ignite folder structure

A new Ignite boilerplate project's structure looks similar to this:

Expand Down Expand Up @@ -57,19 +57,19 @@ app

This is where your components will live, the reusable building blocks to create your screens. A handful of built-in components come with Ignite that are adaptable to any custom design system you wish to implement. Below are links to further documentation about each component:

- [Component Overview](./Components.md)
- [AutoImage](./Components-AutoImage.md)
- [Button](./Components-Button.md)
- [Card](./Components-Card.md)
- [EmptyState](./Components-EmptyState.md)
- [Header](./Components-Header.md)
- [Icon](./Components-Icon.md)
- [ListItem](./Components-ListItem.md)
- [ListView](./Components-ListView.md)
- [Screen](./Components-Screen.md)
- [Text](./Components-Text.md)
- [TextField](./Components-TextField.md)
- [Toggle](./Components-Toggle.md)
- [Component Overview](../)
- [AutoImage](../boilerplate/components/AutoImage.md)
- [Button](../boilerplate/components/Button.md)
- [Card](../boilerplate/components/Card.md)
- [EmptyState](../boilerplate/components/EmptyState.md)
- [Header](../boilerplate/components/Header.md)
- [Icon](../boilerplate/components/Icon.md)
- [ListItem](../boilerplate/components/ListItem.md)
- [ListView](../boilerplate/components/ListView.md)
- [Screen](../boilerplate/components/Screen.md)
- [Text](../boilerplate/components/Text.md)
- [TextField](../boilerplate/components/TextField.md)
- [Toggle](../boilerplate/components/Toggle.md)

**i18n**

Expand All @@ -95,7 +95,7 @@ Any services that interface with the outside world will live here (think REST AP

**theme**

Here lives the theme for your application, including spacing, colors, and typography. For help with adding custom fonts to your application, [check out the readme in ./assets/fonts/](./boilerplate/assets/fonts/custom-fonts.md).
Here lives the theme for your application, including spacing, colors, and typography. For help with adding custom fonts to your application, [check out the readme in Fonts & Typography/](../boilerplate/theming/Fonts-And-Typography.md).

**utils**

Expand Down
8 changes: 8 additions & 0 deletions docs/boilerplate/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Boilerplate",
"position": 2,
"link": {
"type": "doc",
"id": "Boilerplate"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# AutoImage Component
---
sidebar_position: 30
---

[Back to all components](./Components.md)
# AutoImage

Ignite's `AutoImage` Component is an enhanced version of the built-in React Native [Image](https://reactnative.dev/docs/image) component. It automatically resizes the image view to fit a max width or height constraint

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Button Component
---
sidebar_position: 31
---

[Back to all components](./Components.md)
# Button

The `Button` component is a wrapper around the [`Pressable`](https://reactnative.dev/docs/pressable) component. Any prop that can be passed to `Pressable` can be passed to `Button` and it will be forwarded. `Button` renders a button with given text in a [`Text`](./Components-Text.md) component or children. It allows you to specify the preset style of the button, you can override both the `Pressable` and `Text` styles.
The `Button` component is a wrapper around the [`Pressable`](https://reactnative.dev/docs/pressable) component. Any prop that can be passed to `Pressable` can be passed to `Button` and it will be forwarded. `Button` renders a button with given text in a [`Text`](./Text.md) component or children. It allows you to specify the preset style of the button, you can override both the `Pressable` and `Text` styles.

```tsx
<Button
Expand Down
Loading