Skip to content

Commit 393d27c

Browse files
committed
Fix some pages
1 parent 62119a4 commit 393d27c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

docs/datepickerios.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: '🚧 DatePickerIOS'
55

66
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
77

8-
> **Deprecated.** Use one of the [community packages](https://reactnative.directory/?search=datepicker) instead.
8+
> **Removed.** Use one of the [community packages](https://reactnative.directory/?search=datepicker) instead.
99
1010
Use `DatePickerIOS` to render a date/time picker (selector) on iOS. This is a controlled component, so you must hook in to the `onDateChange` callback and update the `date` prop in order for the component to update, otherwise the user's change will be reverted immediately to reflect `props.date` as the source of truth.
1111

@@ -14,7 +14,7 @@ Use `DatePickerIOS` to render a date/time picker (selector) on iOS. This is a co
1414
<Tabs groupId="syntax" queryString defaultValue={constants.defaultSyntax} values={constants.syntax}>
1515
<TabItem value="functional">
1616

17-
```SnackPlayer name=DatePickerIOS&supportedPlatforms=ios
17+
```SnackPlayer name=DatePickerIOS&supportedPlatforms=ios&disableLinting=true
1818
import React, {useState} from 'react';
1919
import {DatePickerIOS, View, StyleSheet} from 'react-native';
2020
@@ -41,7 +41,7 @@ export default App;
4141
</TabItem>
4242
<TabItem value="classical">
4343

44-
```SnackPlayer name=DatePickerIOS&supportedPlatforms=ios
44+
```SnackPlayer name=DatePickerIOS&supportedPlatforms=ios&disableLinting=true
4545
import React, {Component} from 'react';
4646
import {DatePickerIOS, View, StyleSheet} from 'react-native';
4747

docs/flexbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,7 @@ import {
24502450
} from 'react-native';
24512451
import type {PropsWithChildren} from 'react';
24522452
2453-
type Dimension = string | number;
2453+
type Dimension = 'auto' | `${number}%` | number;
24542454
24552455
const WidthHeightBasics = () => {
24562456
const [widthType, setWidthType] = useState<Dimension>('auto');

docs/progressviewios.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ id: progressviewios
33
title: '🚧 ProgressViewIOS'
44
---
55

6-
> **Deprecated.** Use one of the [community packages](https://reactnative.directory/?search=progressview) instead.
6+
> **Removed.** Use one of the [community packages](https://reactnative.directory/?search=progressview) instead.
77
88
Uses `ProgressViewIOS` to render a UIProgressView on iOS.
99

1010
### Example
1111

12-
```SnackPlayer name=ProgressViewIOS&supportedPlatforms=ios
12+
```SnackPlayer name=ProgressViewIOS&supportedPlatforms=ios&disableLinting=true
1313
import React from 'react';
1414
import {View, StyleSheet, ProgressViewIOS, Text} from 'react-native';
1515

scripts/lint-examples/src/lintExamples.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,13 @@ async function extractExamplesFromDocument(filename, extension) {
113113
const snackParams = new URLSearchParams(match[2].trim());
114114
const exampleName = snackParams.get('name');
115115
const exampleExt = snackParams.get('ext');
116+
const disableLinting = snackParams.get('disableLinting');
116117
const content = match[3];
117118

119+
if (disableLinting === 'true') {
120+
return [];
121+
}
122+
118123
const baseFileName = path.relative(documentsRoot, filename);
119124
const outFile = path.join(
120125
outputRoot,

0 commit comments

Comments
 (0)