155058f92SEvan Bacon<h1 align="center">@expo/html-elements</h1> 255058f92SEvan Bacon 355058f92SEvan Bacon<img alt="Product: demo" src="https://dev-to-uploads.s3.amazonaws.com/i/xoc3yx7qfqf6e1w6mm2e.png" /> 455058f92SEvan Bacon 555058f92SEvan Bacon<p align="center"> 655058f92SEvan Bacon <!-- iOS --> 755058f92SEvan Bacon <img alt="Supports Expo iOS" longdesc="Supports Expo iOS" src="https://img.shields.io/badge/iOS-4630EB.svg?style=flat-square&logo=APPLE&labelColor=999999&logoColor=fff" /> 855058f92SEvan Bacon <!-- Android --> 955058f92SEvan Bacon <img alt="Supports Expo Android" longdesc="Supports Expo Android" src="https://img.shields.io/badge/Android-4630EB.svg?style=flat-square&logo=ANDROID&labelColor=A4C639&logoColor=fff" /> 1055058f92SEvan Bacon <!-- Web --> 1155058f92SEvan Bacon <img alt="Supports Expo Web" longdesc="Supports Expo Web" src="https://img.shields.io/badge/web-4630EB.svg?style=flat-square&logo=GOOGLE-CHROME&labelColor=4285F4&logoColor=fff" /> 1255058f92SEvan Bacon <a aria-label="Circle CI" href="https://circleci.com/gh/expo/expo/tree/master"> 1355058f92SEvan Bacon <img alt="Circle CI" src="https://flat.badgen.net/circleci/github/expo/expo?label=Circle%20CI&labelColor=555555&icon=circleci"> 1455058f92SEvan Bacon </a> 1555058f92SEvan Bacon</p> 1655058f92SEvan Bacon 1755058f92SEvan BaconSimple, light-weight, and well tested, universal semantic HTML elements as React components for iOS, Android, web, and desktop apps! 1855058f92SEvan Bacon 1955058f92SEvan BaconWe at Expo recommend using platform agnostic primitives like `View`, `Image`, and `Text` whenever possible but sometimes that's not easy. Some primitives like Tables, and Footers are native to web only and currently have no way of easily accessing. This package aims to solve that while still being an optimal UI package for iOS, and Android. 2055058f92SEvan Bacon 2155058f92SEvan Bacon### What you get 2255058f92SEvan Bacon 2355058f92SEvan Bacon- Using `@expo/html-elements` will optimize your website for SEO and accessibility. Meaning your websites are indexed more accurately and your native apps better accommodate physically impaired users. 2455058f92SEvan Bacon - This package takes full advantage of [`react-native-web` a11y rules](https://github.com/necolas/react-native-web/blob/master/packages/docs/src/guides/accessibility.stories.mdx) whenever possible. 2555058f92SEvan Bacon - For example, the `H1` component will render an `<h1 />` on web, a `UILabel` on iOS, and a `TextView` on Android. 2655058f92SEvan Bacon- Every component can accept styles from the `StyleSheet` API. 2755058f92SEvan Bacon- TypeScript works for iOS, Android, and web, no more having to create monkey patches to use `href` on a `Text` element. 2855058f92SEvan Bacon- Every component is tested render **tested universally** for iOS, Android, and Web using the package [`jest-expo-enzyme`](https://www.npmjs.com/package/jest-expo-enzyme). Each element is also **E2E tested** on iOS with Detox, and web with [`jest-expo-puppeteer`](https://www.npmjs.com/package/jest-expo-puppeteer). 2955058f92SEvan Bacon- This package is completely side-effect free! 3055058f92SEvan Bacon 3155058f92SEvan Bacon## Setup 3255058f92SEvan Bacon 3355058f92SEvan BaconInstall: 3455058f92SEvan Bacon 3555058f92SEvan Bacon```sh 3655058f92SEvan Baconyarn add @expo/html-elements 3755058f92SEvan Bacon``` 3855058f92SEvan Bacon 3955058f92SEvan BaconImport and use the package: 4055058f92SEvan Bacon 4155058f92SEvan Bacon```tsx 4255058f92SEvan Baconimport { H1 } from '@expo/html-elements'; 4355058f92SEvan Bacon``` 4455058f92SEvan Bacon 4555058f92SEvan Bacon# Components 4655058f92SEvan Bacon 4755058f92SEvan BaconHere is a list of all the currently supported elements and the web feature they map to. Not all HTML elements are supported. There are some HTML elements that mostly overlap with some universal modules, you should always try to use the universal modules whenever possible. All supported components are a capitalized variation of the semantic HTML they implement/emulate. 4855058f92SEvan Bacon 4955058f92SEvan Bacon| HTML | `@expo/html-elements` | 5055058f92SEvan Bacon| ----------------------------------- | :-----------------------------: | 5155058f92SEvan Bacon| [`<a />`][html-a] | [`<A />`](#a) | 5255058f92SEvan Bacon| [`<article />`][html-article] | [`<Article />`](#article) | 53*68675f3eSEvan Bacon| [`<aside />`][html-aside] | [`<Aside />`](#aside) | 5455058f92SEvan Bacon| [`<b />`][html-b] | [`<B />`](#b) | 5555058f92SEvan Bacon| [`<blockquote />`][html-blockquote] | [`<BlockQuote />`](#blockquote) | 5655058f92SEvan Bacon| [`<br />`][html-br] | [`<BR />`](#br) | 5755058f92SEvan Bacon| [`<caption />`][html-caption] | [`<Caption />`](#caption) | 5855058f92SEvan Bacon| [`<code />`][html-code] | [`<Code />`](#code) | 5955058f92SEvan Bacon| [`<del />`][html-del] | [`<Del />`](#del) | 6055058f92SEvan Bacon| [`<em />`][html-em] | [`<EM />`](#em) | 6155058f92SEvan Bacon| [`<footer />`][html-footer] | [`<Footer />`](#footer) | 6255058f92SEvan Bacon| [`<h1 />`][html-h1] | [`<H1 />`](#h1) | 6355058f92SEvan Bacon| [`<h2 />`][html-h2] | [`<H2 />`](#h2) | 6455058f92SEvan Bacon| [`<h3 />`][html-h3] | [`<H3 />`](#h3) | 6555058f92SEvan Bacon| [`<h4 />`][html-h4] | [`<H4 />`](#h4) | 6655058f92SEvan Bacon| [`<h5 />`][html-h5] | [`<H5 />`](#h5) | 6755058f92SEvan Bacon| [`<h6 />`][html-h6] | [`<H6 />`](#h6) | 6855058f92SEvan Bacon| [`<header />`][html-header] | [`<Header />`](#header) | 6955058f92SEvan Bacon| [`<hr />`][html-hr] | [`<HR />`](#hr) | 7055058f92SEvan Bacon| [`<i />`][html-i] | [`<I />`](#i) | 7155058f92SEvan Bacon| [`<main />`][html-main] | [`<Main />`](#main) | 7255058f92SEvan Bacon| [`<mark />`][html-mark] | [`<Mark />`](#mark) | 7355058f92SEvan Bacon| [`<nav />`][html-nav] | [`<Nav />`](#nav) | 7455058f92SEvan Bacon| [`<ol />`][html-ol] | [`<OL />`](#ol) | 7555058f92SEvan Bacon| [`<p />`][html-p] | [`<P />`](#p) | 7655058f92SEvan Bacon| [`<pre />`][html-pre] | [`<Pre />`](#pre) | 7755058f92SEvan Bacon| [`<q />`][html-q] | [`<Q />`](#q) | 7855058f92SEvan Bacon| [`<s />`][html-s] | [`<S />`](#s) | 7955058f92SEvan Bacon| [`<section />`][html-section] | [`<Section />`](#section) | 8055058f92SEvan Bacon| [`<small />`][html-small] | [`<Small />`](#small) | 8155058f92SEvan Bacon| [`<strong />`][html-strong] | [`<Strong />`](#strong) | 8255058f92SEvan Bacon| [`<table />`][html-table] | [`<Table />`](#table) | 8355058f92SEvan Bacon| [`<tbody />`][html-tbody] | [`<TBody />`](#tbody) | 8455058f92SEvan Bacon| [`<td />`][html-td] | [`<TD />`](#td) | 8555058f92SEvan Bacon| [`<tfoot />`][html-tfoot] | [`<TFoot />`](#tfoot) | 8655058f92SEvan Bacon| [`<th />`][html-th] | [`<TH />`](#th) | 8755058f92SEvan Bacon| [`<thead />`][html-thead] | [`<THead />`](#thead) | 8855058f92SEvan Bacon| [`<time />`][html-time] | [`<Time />`](#time) | 8955058f92SEvan Bacon| [`<tr />`][html-tr] | [`<TR />`](#tr) | 9055058f92SEvan Bacon| [`<ul />`][html-ul] | [`<UL />`](#ul) | 9155058f92SEvan Bacon| [`<li />`][html-li] | [`<LI />`](#li) | 9255058f92SEvan Bacon| [`<details />`][html-details] | ⏱ Pending | 9355058f92SEvan Bacon| [`<summary />`][html-summary] | ⏱ Pending | 9455058f92SEvan Bacon| [`<progress />`][html-progress] | ⏱ Pending | 9555058f92SEvan Bacon| [`<select />`][html-select] | ⏱ Pending | 9655058f92SEvan Bacon| [`<picture />`][html-picture] | ⏱ Pending | 9755058f92SEvan Bacon| [`<figure />`][html-figure] | ⏱ Pending | 9855058f92SEvan Bacon| [`<figcaption />`][html-figcaption] | ⏱ Pending | 99*68675f3eSEvan Bacon| [`<form />`][html-form] | ⏱ Pending | 100*68675f3eSEvan Bacon| [`<label />`][html-label] | ⏱ Pending | 10155058f92SEvan Bacon 10255058f92SEvan Bacon## External 10355058f92SEvan Bacon 10455058f92SEvan BaconOther features not implemented in this package can be found in different parts of the Expo ecosystem. 10555058f92SEvan Bacon 10655058f92SEvan Bacon| HTML | Universal | Package | 10755058f92SEvan Bacon| ------------------------------- | :------------------: | :--------------------------------------------------------------------------------------------------------------------: | 10855058f92SEvan Bacon| `<audio />` | `Audio` | [`expo-av`][ex-audio] | 10955058f92SEvan Bacon| `<button />` | `<Button />` | `react-native` | 11055058f92SEvan Bacon| `<input type="text" />` | `<TextView />` | `react-native` | 11155058f92SEvan Bacon| `<input type="file" />` | `ImagePicker` | [`expo-image-picker`][ex-ipick] | 11255058f92SEvan Bacon| `<input type="file" />` | `DocumentPicker` | [`expo-document-picker`][ex-dpick] | 11355058f92SEvan Bacon| `<canvas />` | `<GLView />` | [`expo-gl`][ex-gl] & [Expo Canvas][ex-canvas] | 11455058f92SEvan Bacon| `<iframe />` | `<WebView />` | [`<WebView />`][ex-webview]. `@react-native-community/web-view` is not maintained by Expo and doesn't have web support | 11555058f92SEvan Bacon| [`<link />`][html-link] | None | Eject the `index.html` with `expo customize:web` and link resources directly with `<link />` | 11655058f92SEvan Bacon| [`<noscript />`][html-noscript] | None | Eject the `index.html` with `expo customize:web` and use `<noscript />` directly as HTML | 11755058f92SEvan Bacon| `<div />` | `<View />` | `react-native` | 11855058f92SEvan Bacon| `<img />` | `<Image />` | `react-native` | 11955058f92SEvan Bacon| `<span />` | `<Text />` | `react-native` | 12055058f92SEvan Bacon| `<video />` | `<Video />` | [`expo-av`][ex-vid] | 12155058f92SEvan Bacon| `style="backdrop-filter"` | `<BlurView />` | [`expo-blur`][ex-blur] | 12255058f92SEvan Bacon| `style="linear-gradient()"` | `<LinearGradient />` | [`expo-linear-gradient`][ex-gradient] | 12355058f92SEvan Bacon 12455058f92SEvan Bacon[ex-gradient]: https://docs.expo.io/versions/latest/sdk/linear-gradient/ 12555058f92SEvan Bacon[ex-webview]: https://docs.expo.io/versions/latest/sdk/webview/ 12655058f92SEvan Bacon[ex-audio]: https://docs.expo.io/versions/latest/sdk/audio 12755058f92SEvan Bacon[ex-gl]: https://docs.expo.io/versions/latest/sdk/gl-view 12855058f92SEvan Bacon[ex-canvas]: https://github.com/expo/expo-2d-context 12955058f92SEvan Bacon[html-noscript]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript 13055058f92SEvan Bacon[html-link]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link 13155058f92SEvan Bacon[ex-blur]: https://docs.expo.io/versions/latest/sdk/blur-view/ 13255058f92SEvan Bacon[ex-vid]: https://docs.expo.io/versions/latest/sdk/video/ 13355058f92SEvan Bacon[ex-ipick]: https://docs.expo.io/versions/latest/sdk/imagepicker/ 13455058f92SEvan Bacon[ex-dpick]: https://docs.expo.io/versions/latest/sdk/document-picker/ 13555058f92SEvan Bacon 13655058f92SEvan Bacon## Headings 13755058f92SEvan Bacon 13855058f92SEvan BaconHeader elements will use the expected [font size and margins from web](http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css) universally. You can see how the native CSS units (rem, and em) are transformed in [css/units](src/css/units.ts). 13955058f92SEvan Bacon 14055058f92SEvan Bacon```tsx 14155058f92SEvan Baconimport { H1, H2, H3, H4, H5, H6 } from '@expo/html-elements'; 14255058f92SEvan Bacon``` 14355058f92SEvan Bacon 14455058f92SEvan Bacon### `<H1/>` 14555058f92SEvan Bacon 14655058f92SEvan Bacon```tsx 14755058f92SEvan Baconimport { H1 } from '@expo/html-elements'; 14855058f92SEvan Baconexport default () => <H1>Example<H1/> 14955058f92SEvan Bacon``` 15055058f92SEvan Bacon 15155058f92SEvan Bacon| Platform | Output | 15255058f92SEvan Bacon| -------- | ------------------------------------------------------ | 15355058f92SEvan Bacon| Web | `<h1 aria-level="1" dir="auto" role="heading" />` | 15455058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 15555058f92SEvan Bacon 15655058f92SEvan Bacon### `<H2/>` 15755058f92SEvan Bacon 15855058f92SEvan Bacon```tsx 15955058f92SEvan Baconimport { H2 } from '@expo/html-elements'; 16055058f92SEvan Baconexport default () => <H2>Example<H2/> 16155058f92SEvan Bacon``` 16255058f92SEvan Bacon 16355058f92SEvan Bacon| Platform | Output | 16455058f92SEvan Bacon| -------- | ------------------------------------------------------ | 16555058f92SEvan Bacon| Web | `<h2 aria-level="2" dir="auto" role="heading" />` | 16655058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 16755058f92SEvan Bacon 16855058f92SEvan Bacon### `<H3/>` 16955058f92SEvan Bacon 17055058f92SEvan Bacon```tsx 17155058f92SEvan Baconimport { H3 } from '@expo/html-elements'; 17255058f92SEvan Baconexport default () => <H3>Example<H3/> 17355058f92SEvan Bacon``` 17455058f92SEvan Bacon 17555058f92SEvan Bacon| Platform | Output | 17655058f92SEvan Bacon| -------- | ------------------------------------------------------ | 17755058f92SEvan Bacon| Web | `<h3 aria-level="3" dir="auto" role="heading" />` | 17855058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 17955058f92SEvan Bacon 18055058f92SEvan Bacon### `<H4/>` 18155058f92SEvan Bacon 18255058f92SEvan Bacon```tsx 18355058f92SEvan Baconimport { H4 } from '@expo/html-elements'; 18455058f92SEvan Baconexport default () => <H4>Example<H4/> 18555058f92SEvan Bacon``` 18655058f92SEvan Bacon 18755058f92SEvan Bacon| Platform | Output | 18855058f92SEvan Bacon| -------- | ------------------------------------------------------ | 18955058f92SEvan Bacon| Web | `<h4 aria-level="4" dir="auto" role="heading" />` | 19055058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 19155058f92SEvan Bacon 19255058f92SEvan Bacon### `<H5/>` 19355058f92SEvan Bacon 19455058f92SEvan Bacon```tsx 19555058f92SEvan Baconimport { H5 } from '@expo/html-elements'; 19655058f92SEvan Baconexport default () => <H5>Example<H5/> 19755058f92SEvan Bacon``` 19855058f92SEvan Bacon 19955058f92SEvan Bacon| Platform | Output | 20055058f92SEvan Bacon| -------- | ------------------------------------------------------ | 20155058f92SEvan Bacon| Web | `<h5 aria-level="5" dir="auto" role="heading" />` | 20255058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 20355058f92SEvan Bacon 20455058f92SEvan Bacon### `<H6/>` 20555058f92SEvan Bacon 20655058f92SEvan Bacon```tsx 20755058f92SEvan Baconimport { H6 } from '@expo/html-elements'; 20855058f92SEvan Baconexport default () => <H6>Example<H6/> 20955058f92SEvan Bacon``` 21055058f92SEvan Bacon 21155058f92SEvan Bacon| Platform | Output | 21255058f92SEvan Bacon| -------- | ------------------------------------------------------ | 21355058f92SEvan Bacon| Web | `<h6 aria-level="6" dir="auto" role="heading" />` | 21455058f92SEvan Bacon| Native | `<Text accessibilityRole="header" style={[Custom]} />` | 21555058f92SEvan Bacon 21655058f92SEvan Bacon## Link 21755058f92SEvan Bacon 21855058f92SEvan Bacon### `<A/>` 21955058f92SEvan Bacon 22055058f92SEvan BaconYou can use the anchor element with href prop to open links. On native this will attempt to use the `Linking` API to open the `href`. 22155058f92SEvan Bacon 22255058f92SEvan Bacon- The CSS style is fully normalized to match `<Text />` 22355058f92SEvan Bacon- For pseudo-class effects like hover and focus states check out the package [`react-native-web-hooks`](https://www.npmjs.com/package/react-native-web-hooks) | [tutorial](https://blog.expo.io/css-pseudo-class-effects-in-expo-for-web-56649f88eb6b) 22455058f92SEvan Bacon 22555058f92SEvan Bacon```tsx 22655058f92SEvan Baconimport { A } from '@expo/html-elements'; 22755058f92SEvan Bacon 22855058f92SEvan Baconexport default () => <A href="#" target="_blank" />; 22955058f92SEvan Bacon} 23055058f92SEvan Bacon``` 23155058f92SEvan Bacon 23255058f92SEvan Bacon| Platform | Output | 23355058f92SEvan Bacon| -------- | ------------------------------------------------------------------------------- | 23455058f92SEvan Bacon| Web | `<a data-focusable="{true}" dir="auto" href="#" role="link" target="_blank" />` | 23555058f92SEvan Bacon| Native | `<Text accessibilityRole="link" onPress={[Function]} />` | 23655058f92SEvan Bacon 23755058f92SEvan Bacon## Layout 23855058f92SEvan Bacon 23955058f92SEvan BaconYou can use layout elements like Header, Main, Footer, Section, Nav, etc. as a drop-in replacement for `View`s in your existing app. 24055058f92SEvan Bacon 24155058f92SEvan Bacon#### Default Layout style 24255058f92SEvan Bacon 24355058f92SEvan BaconAll layout HTML elements inherit the shared style of `<View />` to accommodate the [Yoga layout engine][yoga] which we use on native for iOS, and Android. 24455058f92SEvan Bacon 24555058f92SEvan Bacon- `display` is always `flex`. This is because [Yoga][yoga] only implements `display: flex`. 24655058f92SEvan Bacon- `flex-direction` is always `column` instead of `row`. 24755058f92SEvan Bacon 24855058f92SEvan Bacon#### Why use Layout elements 24955058f92SEvan Bacon 25055058f92SEvan BaconConsider the following: in your app you have a basic element at the top which wraps the buttons and title. A screen reader doesn't understand that this is a header, and mostly neither does a web crawler. But if you replace the encasing view with a `<Header />` the following happens: 25155058f92SEvan Bacon 25255058f92SEvan Bacon- **iOS**: `UIView` uses [`UIAccessibilityTraitHeader`](https://developer.apple.com/documentation/uikit/uiaccessibilitytraitheader?language=objc). 25355058f92SEvan Bacon- **Android**: `View` will use the proper [`AccessibilityNodeInfoCompat.CollectionItemInfoCompat`](https://github.com/facebook/react-native/blob/7428271995adf21b2b31b188ed83b785ce1e9189/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java#L370-L372) | [docs](https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat). 25455058f92SEvan Bacon- **web**: render an HTML 5 [`<header />`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header) with the ARIA `role` set to [`"banner"`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Banner_role). 25555058f92SEvan Bacon 25655058f92SEvan BaconSome elements like `Footer` and `Main` have no iOS, or Android enhancements, but they'll still improve web. Using the proper HTML 5 elements will make your layout compliant with the [HTML5 outline algorithm](https://html.spec.whatwg.org/multipage/sections.html#outlines). 25755058f92SEvan Bacon 25855058f92SEvan Bacon### `<Nav/>` 25955058f92SEvan Bacon 26055058f92SEvan Bacon```tsx 26155058f92SEvan Baconimport { Nav } from '@expo/html-elements'; 26255058f92SEvan Bacon 26355058f92SEvan Baconexport default () => <Nav />; 26455058f92SEvan Bacon``` 26555058f92SEvan Bacon 26655058f92SEvan Bacon| Platform | Output | 26755058f92SEvan Bacon| -------- | ------------------------------ | 26855058f92SEvan Bacon| Web | `<nav style="display:flex" />` | 26955058f92SEvan Bacon| Native | `<View />` | 27055058f92SEvan Bacon 27155058f92SEvan Bacon### `<Header/>` 27255058f92SEvan Bacon 27355058f92SEvan BaconRenders a `<header />` on web with ARIA set to [`banner`][aria-banner] and a `View` with ARIA set to `header` on mobile. 27455058f92SEvan Bacon 27555058f92SEvan Bacon```tsx 27655058f92SEvan Baconimport { Header } from '@expo/html-elements'; 27755058f92SEvan Bacon 27855058f92SEvan Baconexport default () => <Header />; 27955058f92SEvan Bacon``` 28055058f92SEvan Bacon 28155058f92SEvan Bacon| Platform | Output | 28255058f92SEvan Bacon| -------- | ------------------------------------------------------------------------------------------------------------------- | 28355058f92SEvan Bacon| Web | [`<header role="banner" />`][html-header] | 28455058f92SEvan Bacon| Native | `<View />` | 28555058f92SEvan Bacon| iOS | `UIView` uses [`UIAccessibilityTraitHeader`][uiatheader]. | 28655058f92SEvan Bacon| Android | `View` will use the proper [`AccessibilityNodeInfoCompat.CollectionItemInfoCompat`][anicompat] [docs][anicompatdoc] | 28755058f92SEvan Bacon 28855058f92SEvan Bacon[uiatheader]: https://developer.apple.com/documentation/uikit/uiaccessibilitytraitheader?language=objc 28955058f92SEvan Bacon[anicompat]: https://github.com/facebook/react-native/blob/7428271995adf21b2b31b188ed83b785ce1e9189/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java#L370-L372 29055058f92SEvan Bacon[anicompatdoc]: https://developer.android.com/reference/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat.CollectionItemInfoCompat 29155058f92SEvan Bacon 29255058f92SEvan Bacon### `<Main/>` 29355058f92SEvan Bacon 29455058f92SEvan BaconRenders a `<main />` on web with ARIA `role` set to `main` and a `View` with no ARIA set on mobile. 29555058f92SEvan Bacon 29655058f92SEvan Bacon```tsx 29755058f92SEvan Baconimport { Main } from '@expo/html-elements'; 29855058f92SEvan Bacon 29955058f92SEvan Baconexport default () => ( 30055058f92SEvan Bacon <Main> 30155058f92SEvan Bacon <P>Some content in the main element</P> 30255058f92SEvan Bacon </Main> 30355058f92SEvan Bacon ); 30455058f92SEvan Bacon) 30555058f92SEvan Bacon``` 30655058f92SEvan Bacon 30755058f92SEvan Bacon| Platform | Output | 30855058f92SEvan Bacon| -------- | ------------------------------------------- | 30955058f92SEvan Bacon| Web | `<main role="main" style="display:flex" />` | 31055058f92SEvan Bacon| Native | `<View />` | 31155058f92SEvan Bacon 31255058f92SEvan Bacon### `<Section/>` 31355058f92SEvan Bacon 31455058f92SEvan BaconRenders a `<section />` on web with ARIA set to `region` and a `View` with ARIA set to `summary` on mobile. 31555058f92SEvan Bacon 31655058f92SEvan Bacon```tsx 31755058f92SEvan Baconimport { Section } from '@expo/html-elements'; 31855058f92SEvan Bacon 31955058f92SEvan Baconexport default () => <Section />; 32055058f92SEvan Bacon``` 32155058f92SEvan Bacon 32255058f92SEvan Bacon| Platform | Output | 32355058f92SEvan Bacon| -------- | ------------------------------------------------ | 32455058f92SEvan Bacon| Web | `<section role="region" style="display:flex" />` | 32555058f92SEvan Bacon| Native | `<View accessibilityRole="summary" />` | 32655058f92SEvan Bacon 32755058f92SEvan Bacon### `<Article/>` 32855058f92SEvan Bacon 32955058f92SEvan BaconRenders an `<article />` on web and a `View` everywhere else. 33055058f92SEvan Bacon 33155058f92SEvan Bacon```tsx 33255058f92SEvan Baconimport { Article } from '@expo/html-elements'; 33355058f92SEvan Bacon 33455058f92SEvan Baconexport default () => <Article />; 33555058f92SEvan Bacon``` 33655058f92SEvan Bacon 33755058f92SEvan Bacon| Platform | Output | 338*68675f3eSEvan Bacon| -------- | ---------------------------- | 339*68675f3eSEvan Bacon| Web | `<article role="article" />` | 340*68675f3eSEvan Bacon| Native | `<View />` | 341*68675f3eSEvan Bacon 342*68675f3eSEvan Bacon### `<Aside/>` 343*68675f3eSEvan Bacon 344*68675f3eSEvan Bacon```tsx 345*68675f3eSEvan Baconimport { Aside } from '@expo/html-elements'; 346*68675f3eSEvan Bacon 347*68675f3eSEvan Baconexport default () => <Aside />; 348*68675f3eSEvan Bacon``` 349*68675f3eSEvan Bacon 350*68675f3eSEvan Bacon| Platform | Output | 351*68675f3eSEvan Bacon| -------- | -------------------------------- | 352*68675f3eSEvan Bacon| Web | `<aside role="complementary" />` | 35355058f92SEvan Bacon| Native | `<View />` | 35455058f92SEvan Bacon 35555058f92SEvan Bacon### `<Footer/>` 35655058f92SEvan Bacon 35755058f92SEvan BaconRenders an `<footer />` on web and a `View` everywhere else. 35855058f92SEvan Bacon 35955058f92SEvan Bacon```tsx 36055058f92SEvan Baconimport { Footer } from '@expo/html-elements'; 36155058f92SEvan Bacon 36255058f92SEvan Baconexport default () => <Footer />; 36355058f92SEvan Bacon``` 36455058f92SEvan Bacon 36555058f92SEvan Bacon| Platform | Output | 366*68675f3eSEvan Bacon| -------- | ------------------------------- | 367*68675f3eSEvan Bacon| Web | `<footer role="contentinfo" />` | 36855058f92SEvan Bacon| Native | `<View />` | 36955058f92SEvan Bacon 37055058f92SEvan Bacon## Text 37155058f92SEvan Bacon 372*68675f3eSEvan BaconText elements currently use `Text` universally rendering either a `div` or `span` to emulate Yoga style properly. 37355058f92SEvan Bacon 374*68675f3eSEvan Bacon- Style is modified to match web. 37555058f92SEvan Bacon- All font styles are reset. 37655058f92SEvan Bacon- All elements accept styles from `StyleSheet` API. 37755058f92SEvan Bacon 37855058f92SEvan Bacon```tsx 37955058f92SEvan Baconimport { P, B, S, I, BR, Small, Code } from '@expo/html-elements'; 38055058f92SEvan Bacon 38155058f92SEvan Baconexport default () => ( 38255058f92SEvan Bacon <> 38355058f92SEvan Bacon <P> 38455058f92SEvan Bacon Hello<B>World (in bold)</B> 38555058f92SEvan Bacon </P> 38655058f92SEvan Bacon <S>strike text</S> 38755058f92SEvan Bacon <BR /> 38855058f92SEvan Bacon <I>Italic</I> 38955058f92SEvan Bacon <Code>const foo = true</Code> 39055058f92SEvan Bacon <Small>Small text</Small> 39155058f92SEvan Bacon </> 39255058f92SEvan Bacon); 39355058f92SEvan Bacon``` 39455058f92SEvan Bacon 39555058f92SEvan Bacon### `<P/>` 39655058f92SEvan Bacon 39755058f92SEvan BaconStandard paragraph element. 39855058f92SEvan Bacon 39955058f92SEvan Bacon| Platform | Output | 400*68675f3eSEvan Bacon| --------- | ------------------------------------------------------------- | 401*68675f3eSEvan Bacon| Universal | `<Text style={{ fontSize: '1em', marginVertical: '1em' }} />` | 40255058f92SEvan Bacon 40355058f92SEvan Bacon### `<B/>` 40455058f92SEvan Bacon 40555058f92SEvan BaconBold text text. 40655058f92SEvan Bacon 40755058f92SEvan Bacon| Platform | Output | 408*68675f3eSEvan Bacon| --------- | ----------------------------------------- | 409*68675f3eSEvan Bacon| Universal | `<Text style={{ fontWeight: 'bold' }} />` | 41055058f92SEvan Bacon 41155058f92SEvan Bacon### `<Strong/>` 41255058f92SEvan Bacon 41355058f92SEvan BaconAlternate bold text. 41455058f92SEvan Bacon 41555058f92SEvan Bacon| Platform | Output | 416*68675f3eSEvan Bacon| --------- | ----------------------------------------- | 417*68675f3eSEvan Bacon| Universal | `<Text style={{ fontWeight: 'bold' }} />` | 41855058f92SEvan Bacon 41955058f92SEvan Bacon### `<S/>` 42055058f92SEvan Bacon 42155058f92SEvan BaconStrike through text. 42255058f92SEvan Bacon 42355058f92SEvan Bacon| Platform | Output | 424*68675f3eSEvan Bacon| --------- | --------------------------------------------------------- | 425*68675f3eSEvan Bacon| Universal | `<Text style={{ textDecorationLine: 'line-through' }} />` | 42655058f92SEvan Bacon 42755058f92SEvan Bacon### `<Del/>` 42855058f92SEvan Bacon 42955058f92SEvan BaconAlternate strike through text. 43055058f92SEvan Bacon 43155058f92SEvan Bacon| Platform | Output | 432*68675f3eSEvan Bacon| --------- | --------------------------------------------------------- | 433*68675f3eSEvan Bacon| Universal | `<Text style={{ textDecorationLine: 'line-through' }} />` | 43455058f92SEvan Bacon 43555058f92SEvan Bacon### `<I/>` 43655058f92SEvan Bacon 43755058f92SEvan BaconItalic text. 43855058f92SEvan Bacon 43955058f92SEvan Bacon| Platform | Output | 440*68675f3eSEvan Bacon| --------- | ------------------------------------------ | 441*68675f3eSEvan Bacon| Universal | `<Text style={{ fontStyle: 'italic' }} />` | 44255058f92SEvan Bacon 44355058f92SEvan Bacon### `<EM/>` 44455058f92SEvan Bacon 44555058f92SEvan BaconAlternate italic text. 44655058f92SEvan Bacon 44755058f92SEvan Bacon| Platform | Output | 448*68675f3eSEvan Bacon| --------- | ------------------------------------------ | 449*68675f3eSEvan Bacon| Universal | `<Text style={{ fontStyle: 'italic' }} />` | 45055058f92SEvan Bacon 45155058f92SEvan Bacon### `<Small/>` 45255058f92SEvan Bacon 45355058f92SEvan BaconSmaller than default text. 45455058f92SEvan Bacon 45555058f92SEvan Bacon| Platform | Output | 456*68675f3eSEvan Bacon| --------- | ----------------------------------- | 457*68675f3eSEvan Bacon| Universal | `<Text style={{ fontSize: 10 }} />` | 45855058f92SEvan Bacon 45955058f92SEvan Bacon### `<Code/>` 46055058f92SEvan Bacon 46155058f92SEvan BaconInline code block. 46255058f92SEvan Bacon 46355058f92SEvan Bacon- [ ] Support lazy loading mono font on mobile. 46455058f92SEvan Bacon 46555058f92SEvan Bacon| Platform | Output | 466*68675f3eSEvan Bacon| --------- | --------------------------- | 467*68675f3eSEvan Bacon| Universal | `<Text style={[Custom]} />` | 46855058f92SEvan Bacon 46955058f92SEvan Bacon### `<Pre/>` 47055058f92SEvan Bacon 47155058f92SEvan BaconRender a preformatted code block: 47255058f92SEvan Bacon 47355058f92SEvan Bacon```jsx 47455058f92SEvan Bacon<Pre>{` 47555058f92SEvan Baconbody { 47655058f92SEvan Bacon color: red; 47755058f92SEvan Bacon} 47855058f92SEvan Bacon`}</Pre> 47955058f92SEvan Bacon 48055058f92SEvan Bacon// Or pass views 48155058f92SEvan Bacon 48255058f92SEvan Bacon<Pre> 48355058f92SEvan Bacon <Code>{`const val = true`}</Code> 48455058f92SEvan Bacon</Pre> 48555058f92SEvan Bacon``` 48655058f92SEvan Bacon 48755058f92SEvan Bacon- [ ] Support lazy loading mono font on mobile. 48855058f92SEvan Bacon 48955058f92SEvan Bacon| Platform | Output | 490*68675f3eSEvan Bacon| --------- | ----------------------------------------- | 491*68675f3eSEvan Bacon| Universal | `<Text style={[Custom]} />` \| `<View />` | 49255058f92SEvan Bacon 49355058f92SEvan Bacon### `<Mark/>` 49455058f92SEvan Bacon 49555058f92SEvan BaconHighlight text. 49655058f92SEvan Bacon 49755058f92SEvan Bacon| Platform | Output | 498*68675f3eSEvan Bacon| --------- | ---------------------------------------------------------------- | 499*68675f3eSEvan Bacon| Universal | `<Text style={{ backgroundColor: 'yellow', color: 'black' }} />` | 50055058f92SEvan Bacon 50155058f92SEvan Bacon### `<Q/>` 50255058f92SEvan Bacon 50355058f92SEvan BaconQuoted text. 50455058f92SEvan Bacon 50555058f92SEvan Bacon| Platform | Output | 506*68675f3eSEvan Bacon| --------- | -------------------------------------------------- | 507*68675f3eSEvan Bacon| Universal | `<Text style={[Custom]}>"{props.children}"</Text>` | 50855058f92SEvan Bacon 50955058f92SEvan Bacon### `<BlockQuote/>` 51055058f92SEvan Bacon 51155058f92SEvan Bacon| Platform | Output | 512*68675f3eSEvan Bacon| --------- | --------------------------- | 513*68675f3eSEvan Bacon| Universal | `<View style={[Custom]} />` | 51455058f92SEvan Bacon 51555058f92SEvan Bacon### `<Time/>` 51655058f92SEvan Bacon 51755058f92SEvan Bacon- `dateTime` prop is supported on web and stripped on native. 51855058f92SEvan Bacon 51955058f92SEvan Bacon| Platform | Output | 520*68675f3eSEvan Bacon| --------- | --------------------------- | 521*68675f3eSEvan Bacon| Universal | `<Text style={[Custom]} />` | 52255058f92SEvan Bacon 52355058f92SEvan Bacon## Lists 52455058f92SEvan Bacon 52555058f92SEvan BaconLists can be used to create basic bulleted or numbered lists. You should try and use universal `FlatList` or `SectionList` components for long scrolling lists instead of these. 52655058f92SEvan Bacon 52755058f92SEvan Bacon### `<UL/>` 52855058f92SEvan Bacon 52955058f92SEvan BaconCreate an unordered (bulleted) list `<ul />` on web, and emulates the style with a `<View />` on native. 53055058f92SEvan Bacon 53155058f92SEvan Bacon- [x] Resets font styles everywhere. 53255058f92SEvan Bacon- [ ] Supports i18n by reversing format on iOS and Android 53355058f92SEvan Bacon- [ ] Supports custom bullets 53455058f92SEvan Bacon 53555058f92SEvan Bacon```tsx 53655058f92SEvan Baconimport { UL, LI } from '@expo/html-elements'; 53755058f92SEvan Bacon 53855058f92SEvan Baconexport default () => ( 53955058f92SEvan Bacon <UL> 54055058f92SEvan Bacon <LI>oranges</LI> 54155058f92SEvan Bacon <LI>apples</LI> 54255058f92SEvan Bacon <UL> 54355058f92SEvan Bacon <LI>green</LI> 54455058f92SEvan Bacon <LI>red</LI> 54555058f92SEvan Bacon </UL> 54655058f92SEvan Bacon </UL> 54755058f92SEvan Bacon); 54855058f92SEvan Bacon``` 54955058f92SEvan Bacon 55055058f92SEvan Bacon| Platform | Output | 55155058f92SEvan Bacon| -------- | --------------------------- | 55255058f92SEvan Bacon| Web | `<ul />` | 55355058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 55455058f92SEvan Bacon 55555058f92SEvan Bacon### `<OL/>` 55655058f92SEvan Bacon 55755058f92SEvan BaconCreate an ordered (numbered) list `<ol />` on web, and emulates the style with a `<View />` on native. 55855058f92SEvan Bacon 55955058f92SEvan Bacon- [x] Resets font styles everywhere. 56055058f92SEvan Bacon- [ ] Supports i18n by reversing format on iOS and Android 56155058f92SEvan Bacon- [ ] Supports i18n bullets on iOS and Android 56255058f92SEvan Bacon- [ ] Supports custom bullets 56355058f92SEvan Bacon 56455058f92SEvan Bacon```tsx 56555058f92SEvan Baconimport { OL, LI } from '@expo/html-elements'; 56655058f92SEvan Bacon 56755058f92SEvan Baconexport default () => { 56855058f92SEvan Bacon return ( 56955058f92SEvan Bacon <OL> 57055058f92SEvan Bacon <LI>oranges</LI> 57155058f92SEvan Bacon <LI>apples</LI> 57255058f92SEvan Bacon <OL> 57355058f92SEvan Bacon <LI>green</LI> 57455058f92SEvan Bacon <LI>red</LI> 57555058f92SEvan Bacon </OL> 57655058f92SEvan Bacon </OL> 57755058f92SEvan Bacon); 57855058f92SEvan Bacon``` 57955058f92SEvan Bacon 58055058f92SEvan Bacon| Platform | Output | 58155058f92SEvan Bacon| -------- | --------------------------- | 58255058f92SEvan Bacon| Web | `<ol />` | 58355058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 58455058f92SEvan Bacon 58555058f92SEvan Bacon### `<LI/>` 58655058f92SEvan Bacon 58755058f92SEvan BaconCreate a standard list item `<li />` on web and a native view on mobile which can render text or views inside it. 58855058f92SEvan Bacon 58955058f92SEvan Bacon| Platform | Output | 59055058f92SEvan Bacon| -------- | ---------------------------------------------------------- | 59155058f92SEvan Bacon| Web | `<li />` | 59255058f92SEvan Bacon| Native | `<Text style={[Custom]} />` \| `<View style={[Custom]} />` | 59355058f92SEvan Bacon 59455058f92SEvan Bacon## Rules 59555058f92SEvan Bacon 59655058f92SEvan Bacon### `<HR/>` 59755058f92SEvan Bacon 59855058f92SEvan BaconRenders a `<View>` everywhere. Style is modified to match web. 59955058f92SEvan Bacon 60055058f92SEvan Bacon```tsx 60155058f92SEvan Baconimport { HR } from '@expo/html-elements'; 60255058f92SEvan Bacon 60355058f92SEvan Baconexport default () => <HR />; 60455058f92SEvan Bacon``` 60555058f92SEvan Bacon 60655058f92SEvan Bacon| Platform | Output | 60755058f92SEvan Bacon| -------- | --------------------------- | 60855058f92SEvan Bacon| Web | `<hr />` | 60955058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 61055058f92SEvan Bacon 61155058f92SEvan Bacon### `<BR/>` 61255058f92SEvan Bacon 61355058f92SEvan BaconCreate a line break. 61455058f92SEvan Bacon 61555058f92SEvan Bacon| Platform | Output | 61655058f92SEvan Bacon| -------- | ---------------------------------------- | 61755058f92SEvan Bacon| Web | `<br />` | 61855058f92SEvan Bacon| Native | `<View style={{height: 8, width: 0}} />` | 61955058f92SEvan Bacon 62055058f92SEvan Bacon## Tables 62155058f92SEvan Bacon 62255058f92SEvan BaconCreate tables universally. 62355058f92SEvan Bacon 62455058f92SEvan Bacon- Each element renders to the expected type on web. 62555058f92SEvan Bacon- `padding` is removed from all table elements. 62655058f92SEvan Bacon- Text **can only** be rendered in `TH` and `TD` on mobile. 62755058f92SEvan Bacon- `colSpan` and `rowSpan` are currently web-only (PRs welcome). 62855058f92SEvan Bacon 62955058f92SEvan Bacon```tsx 63055058f92SEvan Baconimport { Table, THead, TH, TBody, TFoot, TR, TD, Caption } from '@expo/html-elements'; 63155058f92SEvan Baconimport { Text } from 'react-native'; 63255058f92SEvan Bacon 63355058f92SEvan Baconexport default () => ( 63455058f92SEvan Bacon <Table> 63555058f92SEvan Bacon <Caption>Caption</Caption> 63655058f92SEvan Bacon <THead> 63755058f92SEvan Bacon <TR> 63855058f92SEvan Bacon <TH colSpan="2">The table header</TH> 63955058f92SEvan Bacon </TR> 64055058f92SEvan Bacon </THead> 64155058f92SEvan Bacon <TBody> 64255058f92SEvan Bacon <TR> 64355058f92SEvan Bacon <TD>The table body</TD> 64455058f92SEvan Bacon <TD>with two columns</TD> 64555058f92SEvan Bacon </TR> 64655058f92SEvan Bacon </TBody> 64755058f92SEvan Bacon <TFoot> 64855058f92SEvan Bacon <TR> 64955058f92SEvan Bacon <TD> 65055058f92SEvan Bacon <Text>This is the table footer</Text> 65155058f92SEvan Bacon </TD> 65255058f92SEvan Bacon </TR> 65355058f92SEvan Bacon </TFoot> 65455058f92SEvan Bacon </Table> 65555058f92SEvan Bacon); 65655058f92SEvan Bacon``` 65755058f92SEvan Bacon 65855058f92SEvan Bacon#### Table example output web 65955058f92SEvan Bacon 66055058f92SEvan Bacon```html 66155058f92SEvan Bacon<table> 66255058f92SEvan Bacon <caption> 66355058f92SEvan Bacon Caption 66455058f92SEvan Bacon </caption> 66555058f92SEvan Bacon <thead> 66655058f92SEvan Bacon <tr> 66755058f92SEvan Bacon <th colspan="2">The table header</th> 66855058f92SEvan Bacon </tr> 66955058f92SEvan Bacon </thead> 67055058f92SEvan Bacon <tbody> 67155058f92SEvan Bacon <tr> 67255058f92SEvan Bacon <td>The table body</td> 67355058f92SEvan Bacon <td>with two columns</td> 67455058f92SEvan Bacon </tr> 67555058f92SEvan Bacon </tbody> 67655058f92SEvan Bacon <tfoot> 67755058f92SEvan Bacon <tr> 67855058f92SEvan Bacon <td><div>The table body</div></td> 67955058f92SEvan Bacon </tr> 68055058f92SEvan Bacon </tfoot> 68155058f92SEvan Bacon</table> 68255058f92SEvan Bacon``` 68355058f92SEvan Bacon 68455058f92SEvan Bacon### `<Table/>` 68555058f92SEvan Bacon 68655058f92SEvan BaconBase element for creating a Table. 68755058f92SEvan Bacon 68855058f92SEvan Bacon| Platform | Output | 68955058f92SEvan Bacon| -------- | --------------------------- | 69055058f92SEvan Bacon| Web | `<table />` | 69155058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 69255058f92SEvan Bacon 69355058f92SEvan Bacon### `<THead/>` 69455058f92SEvan Bacon 69555058f92SEvan BaconHeader element in a Table. 69655058f92SEvan Bacon 69755058f92SEvan Bacon| Platform | Output | 69855058f92SEvan Bacon| -------- | --------------------------- | 69955058f92SEvan Bacon| Web | `<thead />` | 70055058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 70155058f92SEvan Bacon 70255058f92SEvan Bacon### `<TBody/>` 70355058f92SEvan Bacon 70455058f92SEvan BaconBody element in a Table. 70555058f92SEvan Bacon 70655058f92SEvan Bacon| Platform | Output | 70755058f92SEvan Bacon| -------- | --------------------------- | 70855058f92SEvan Bacon| Web | `<tbody />` | 70955058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 71055058f92SEvan Bacon 71155058f92SEvan Bacon### `<TFoot/>` 71255058f92SEvan Bacon 71355058f92SEvan BaconFooter element in a Table. 71455058f92SEvan Bacon 71555058f92SEvan Bacon| Platform | Output | 71655058f92SEvan Bacon| -------- | --------------------------- | 71755058f92SEvan Bacon| Web | `<tfoot />` | 71855058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 71955058f92SEvan Bacon 72055058f92SEvan Bacon### `<TH/>` 72155058f92SEvan Bacon 72255058f92SEvan BaconUsed to display text in the Header. 72355058f92SEvan Bacon 72455058f92SEvan Bacon- `colSpan` and `rowSpan` are currently web-only. 72555058f92SEvan Bacon 72655058f92SEvan Bacon| Platform | Output | 72755058f92SEvan Bacon| -------- | --------------------------- | 72855058f92SEvan Bacon| Web | `<th />` | 72955058f92SEvan Bacon| Native | `<Text style={[Custom]} />` | 73055058f92SEvan Bacon 73155058f92SEvan Bacon### `<TR/>` 73255058f92SEvan Bacon 73355058f92SEvan BaconUsed to create a Row in a Table. 73455058f92SEvan Bacon 73555058f92SEvan Bacon| Platform | Output | 73655058f92SEvan Bacon| -------- | --------------------------- | 73755058f92SEvan Bacon| Web | `<tr />` | 73855058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 73955058f92SEvan Bacon 74055058f92SEvan Bacon### `<TD/>` 74155058f92SEvan Bacon 74255058f92SEvan BaconCreate a cell in a Table. 74355058f92SEvan Bacon 74455058f92SEvan Bacon- `colSpan` and `rowSpan` are currently web-only. 74555058f92SEvan Bacon 74655058f92SEvan Bacon| Platform | Output | 74755058f92SEvan Bacon| -------- | --------------------------- | 74855058f92SEvan Bacon| Web | `<td />` | 74955058f92SEvan Bacon| Native | `<View style={[Custom]} />` | 75055058f92SEvan Bacon 75155058f92SEvan Bacon### `<Caption/>` 75255058f92SEvan Bacon 75355058f92SEvan BaconUsed to caption your table. Excepts text as a child. 75455058f92SEvan Bacon 75555058f92SEvan Bacon| Platform | Output | 75655058f92SEvan Bacon| -------- | --------------------------- | 75755058f92SEvan Bacon| Web | `<caption />` | 75855058f92SEvan Bacon| Native | `<Text style={[Custom]} />` | 75955058f92SEvan Bacon 76055058f92SEvan Bacon## TODO 76155058f92SEvan Bacon 76255058f92SEvan Bacon- Improve relative imports for better tree-shaking. 76355058f92SEvan Bacon 76455058f92SEvan Bacon## Contributing 76555058f92SEvan Bacon 76655058f92SEvan BaconContributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). 76755058f92SEvan Bacon 76855058f92SEvan Bacon[yoga]: https://yogalayout.com/ 76955058f92SEvan Bacon 77055058f92SEvan Bacon<!-- HTML element links --> 77155058f92SEvan Bacon 77255058f92SEvan Bacon[html-a]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a 77355058f92SEvan Bacon[html-article]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article 774*68675f3eSEvan Bacon[html-aside]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside 77555058f92SEvan Bacon[html-b]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b 77655058f92SEvan Bacon[html-blockquote]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote 77755058f92SEvan Bacon[html-br]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br 77855058f92SEvan Bacon[html-caption]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption 77955058f92SEvan Bacon[html-code]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code 78055058f92SEvan Bacon[html-del]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del 78155058f92SEvan Bacon[html-em]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em 78255058f92SEvan Bacon[html-footer]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer 783*68675f3eSEvan Bacon[html-form]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form 78455058f92SEvan Bacon[html-h1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1 78555058f92SEvan Bacon[html-h2]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2 78655058f92SEvan Bacon[html-h3]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3 78755058f92SEvan Bacon[html-h4]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4 78855058f92SEvan Bacon[html-h5]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5 78955058f92SEvan Bacon[html-h6]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6 79055058f92SEvan Bacon[html-header]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header 79155058f92SEvan Bacon[html-hr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr 79255058f92SEvan Bacon[html-i]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i 79355058f92SEvan Bacon[html-main]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main 79455058f92SEvan Bacon[html-mark]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark 79555058f92SEvan Bacon[html-nav]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav 79655058f92SEvan Bacon[html-ol]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol 79755058f92SEvan Bacon[html-p]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p 79855058f92SEvan Bacon[html-pre]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre 79955058f92SEvan Bacon[html-q]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q 80055058f92SEvan Bacon[html-s]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s 80155058f92SEvan Bacon[html-section]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section 80255058f92SEvan Bacon[html-small]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small 80355058f92SEvan Bacon[html-strong]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong 80455058f92SEvan Bacon[html-table]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table 80555058f92SEvan Bacon[html-tbody]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody 80655058f92SEvan Bacon[html-td]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td 80755058f92SEvan Bacon[html-tfoot]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot 80855058f92SEvan Bacon[html-th]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th 80955058f92SEvan Bacon[html-thead]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead 81055058f92SEvan Bacon[html-time]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time 81155058f92SEvan Bacon[html-tr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr 81255058f92SEvan Bacon[html-ul]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul 81355058f92SEvan Bacon[html-li]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li 814*68675f3eSEvan Bacon[html-label]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label 81555058f92SEvan Bacon[html-details]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details 81655058f92SEvan Bacon[html-summary]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary 81755058f92SEvan Bacon[html-progress]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress 81855058f92SEvan Bacon[html-select]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select 81955058f92SEvan Bacon[html-picture]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture 82055058f92SEvan Bacon[html-figure]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure 82155058f92SEvan Bacon[html-figcaption]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption 82255058f92SEvan Bacon[aria-banner]: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Banner_role 823