Home
last modified time | relevance | path

Searched refs:heading (Results 1 – 25 of 125) sorted by relevance

12345

/expo/docs/ui/components/TableOfContents/
H A DTableOfContents.tsx25 {headings.map(heading => (
26 <li key={`heading-${heading.id}`} data-toc-id={heading.id}>
27 <TableOfContentsLink {...heading} isActive={heading.id === activeId} />
68 export function getHeadingIndent(heading: HTMLHeadingElement) {
69 const level = Math.max(Number(heading.tagName.slice(1)) - 2, 0);
74 * Parse the heading information from an HTML heading element.
77 export function getHeadingInfo(heading: HTMLHeadingElement) {
78 const text = heading.textContent || '';
H A DTableOfContents.test.tsx10 it('returns no padding for h1 heading', () => {
14 it('returns no padding for h2 heading', () => {
18 it('returns 1x padding for h3 heading', () => {
22 it('returns 2x padding for h4 heading', () => {
26 it('returns 3x padding for h5 heading', () => {
30 it('returns 4x padding for h6 heading', () => {
36 it('returns normal text from h1 heading', () => {
43 it('returns normal text from h2 heading', () => {
57 it('returns code text from h4 heading with function name', () => {
82 render(<Tag data-testid="heading">{text}</Tag>);
[all …]
H A DuseHeadingObserver.ts38 headings.forEach(heading => observerRef.current?.observe(heading.element));
54 function getHeadingId(heading: HTMLHeadingElement): string {
55 return heading.id || heading.dataset.id || '';
/expo/packages/html-elements/src/elements/__tests__/__snapshots__/
H A DHeadings-test.tsx.snap.web8 role="heading"
17 role="heading"
26 role="heading"
35 role="heading"
44 role="heading"
53 role="heading"
/expo/docs/common/
H A DheadingManager.ts124 const heading = { constant
136 this._headings.push(heading);
139 return heading;
149 heading => heading.title === realTitle && !heading._processed
/expo/packages/expo-maps/ios/ExpoMaps/Records/
H A DUserLocationRecord.swift13 @Field var heading: Double? variable
23 heading = location.course
34 heading = location.heading?.trueHeading
/expo/ios/versioned/sdk49/ExpoMaps/ExpoMaps/Records/
H A DUserLocationRecord.swift13 @Field var heading: Double? variable
23 heading = location.course
34 heading = location.heading?.trueHeading
/expo/ios/versioned/sdk48/ExpoMaps/ExpoMaps/Records/
H A DUserLocationRecord.swift13 @Field var heading: Double? variable
23 heading = location.course
34 heading = location.heading?.trueHeading
/expo/packages/@expo/metro-runtime/src/error-overlay/overlay/
H A DLogBoxInspectorSection.tsx14 heading: string;
22 <View style={styles.heading}>
23 <Text style={styles.headingText}>{props.heading}</Text>
35 heading: {
/expo/docs/components/plugins/
H A DAPISection.test.tsx28 expect(screen.getAllByRole('heading', { level: 2 })).toHaveLength(6);
29 expect(screen.getAllByRole('heading', { level: 3 })).toHaveLength(25);
56 expect(screen.getAllByRole('heading', { level: 2 })).toHaveLength(7);
57 expect(screen.getAllByRole('heading', { level: 3 })).toHaveLength(19);
78 expect(screen.getAllByRole('heading', { level: 2 })).toHaveLength(4);
79 expect(screen.getAllByRole('heading', { level: 3 })).toHaveLength(11);
102 expect(screen.getAllByRole('heading', { level: 2 })).toHaveLength(3);
103 expect(screen.getAllByRole('heading', { level: 3 })).toHaveLength(18);
/expo/docs/.vale/writing-styles/expo-docs/
H A DHeadingPunctuation.yml2 message: "Don't put a period at the end of a heading."
5 scope: heading
H A DHeadingCase.yml6 - heading.h2
7 - heading.h3
8 - heading.h4
9 - heading.h5
/expo/docs/components/
H A DPermalink.tsx18 // Sidebar heading level override
87 const heading = props.headingManager.addHeading(
96 <LinkBase css={STYLES_PERMALINK_LINK} href={'#' + heading.slug} ref={heading.ref}>
97 <span css={STYLES_PERMALINK_TARGET} id={heading.slug} />
H A DDocumentationSidebarRight.tsx121 {displayedHeadings.map(heading => {
122 const isActive = heading.slug === this.state.activeSlug;
125 key={heading.slug}
126 heading={heading}
127 onClick={e => this.handleLinkClick(e, heading)}
160 private handleLinkClick = (event: React.MouseEvent<HTMLAnchorElement>, heading: Heading) => {
166 const { slug, ref } = heading;
H A DDocumentationSidebarRight.test.tsx11 headingManager.addHeading('Base level heading', undefined, {});
13 headingManager.addHeading('Code heading depth 1', 0, {
/expo/packages/@expo/metro-runtime/build/error-overlay/overlay/
H A DLogBoxInspectorSection.js42 react_1.default.createElement(react_native_1.View, { style: styles.heading },
43 … react_1.default.createElement(react_native_1.Text, { style: styles.headingText }, props.heading),
52 heading: { property
H A DLogBoxInspectorSection.d.ts10 heading: string;
H A DLogBoxInspectorSection.js.map1heading: string;\n children: React.ReactNode;\n action?: any;\n};\n\nexport function LogBoxInspe…
/expo/apps/native-component-list/src/screens/
H A DClipboardPasteButtonScreen.tsx37 <Text style={styles.heading}>Text Paste Result:</Text>
46 <Text style={styles.heading}>Image Paste Result:</Text>
63 heading: {
/expo/docs/ui/components/Collapsible/
H A Dindex.tsx34 // expand collapsible if the current hash matches the heading
39 if (hash && hash === heading.current.slug) {
63 const heading = React.useRef(props.headingManager.addHeading(summary, 1, undefined));
66 <details id={heading.current.slug} css={detailsStyle} open={open} data-testid={testID}>
71 <LinkBase href={'#' + heading.current.slug} ref={heading.current.ref}>
/expo/docs/components/__snapshots__/
H A DDocumentationSidebarRight.test.tsx.snap66 href="#base-level-heading"
72 Base level heading
88 href="#code-heading-depth-1"
94 Code heading depth 1
/expo/ios/versioned-react-native/ABI49_0_0/Expo/ExpoKit/Core/Api/Components/Maps/
H A DABI49_0_0RCTConvert+AirMap.m53 if (json[@"heading"]) {
54 camera.heading = [self double:json[@"heading"]];
/expo/ios/versioned-react-native/ABI47_0_0/Expo/ExpoKit/Core/Api/Components/Maps/
H A DABI47_0_0RCTConvert+AirMap.m53 if (json[@"heading"]) {
54 camera.heading = [self double:json[@"heading"]];
/expo/ios/versioned-react-native/ABI48_0_0/Expo/ExpoKit/Core/Api/Components/Maps/
H A DABI48_0_0RCTConvert+AirMap.m53 if (json[@"heading"]) {
54 camera.heading = [self double:json[@"heading"]];
/expo/ios/Exponent/Versioned/Core/Api/Components/Maps/
H A DRCTConvert+AirMap.m53 if (json[@"heading"]) {
54 camera.heading = [self double:json[@"heading"]];

12345