Skip to content

Commit f74ba52

Browse files
authored
Merge pull request #3 from react-native-website-migration/minimal-site
Set up a minimal D2 site
2 parents 17a9143 + abc5b68 commit f74ba52

File tree

1,733 files changed

+60588
-229209
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,733 files changed

+60588
-229209
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- run:
6565
name: Check for missing index.html (build errors)
6666
command: |
67-
if [ ! -f build/react-native/index.html ]; then
67+
if [ ! -f build/index.html ]; then
6868
exit 1;
6969
fi
7070
# --------------------------------------------------

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ website/i18n/*
1313
!website/i18n/en.json
1414

1515
.nvmrc
16+
.docusaurus
1617
website/scripts/sync-api-docs/generatedComponentApiDocs.js
1718
website/scripts/sync-api-docs/extracted.json

docs/activityindicator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ Whether to show the indicator (`true`) or hide it (`false`).
108108

109109
The foreground color of the spinner.
110110

111-
| Type | Default |
112-
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
113-
| [color](colors) | `null` (system accent default color)<div class="label android">Android</div><hr/><ins style="background: #999" class="color-box"></ins>`'#999999'` <div class="label ios">iOS</div> |
111+
| Type | Default |
112+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
113+
| [color](colors) | `null` (system accent default color)<div class="label android">Android</div><hr/><ins style={{background: '#999'}} className="color-box" />`'#999999'` <div className="label ios">iOS</div> |
114114

115115
---
116116

docs/alertios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: alertios
3-
title: 🚧 AlertIOS
3+
title: '🚧 AlertIOS'
44
---
55

66
> **Deprecated.** Use [`Alert`](alert) instead.

docs/appearance.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,13 @@ Indicates the current user preferred color scheme. The value may be updated late
5959

6060
Supported color schemes:
6161

62-
| Value | Description |
63-
| --------- | --------------------------------------------------- |
64-
| `"light"` | The user prefers a light color theme. |
65-
| `"dark"` | The user prefers a dark color theme. |
66-
| `null` | The user has not indicated a preferred color theme. |
62+
- `light`: The user prefers a light color theme.
63+
- `dark`: The user prefers a dark color theme.
64+
- null: The user has not indicated a preferred color theme.
6765

68-
> **Note:** `getColorScheme()` will always return `"light"` when debugging with browser.
66+
See also: `useColorScheme` hook.
6967

70-
See also: [`useColorScheme`](usecolorscheme) hook.
71-
72-
---
68+
> Note: `getColorScheme()` will always return `light` when debugging with Chrome.
7369
7470
### `addChangeListener()`
7571

@@ -79,8 +75,6 @@ static addChangeListener(listener)
7975

8076
Add an event handler that is fired when appearance preferences change.
8177

82-
---
83-
8478
### `removeChangeListener()`
8579

8680
```jsx

docs/appregistry.md

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

docs/asyncstorage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: asyncstorage
3-
title: 🚧 AsyncStorage
3+
title: '🚧 AsyncStorage'
44
---
55

66
> **Deprecated.** Use [@react-native-community/async-storage](https://github.com/react-native-community/react-native-async-storage) instead.

docs/building-for-tv.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ title: Building For TV Devices
55

66
TV devices support has been implemented with the intention of making existing React Native applications work on Apple TV and Android TV, with few or no changes needed in the JavaScript code for the applications.
77

8-
<div class="toggler">
8+
<div className="toggler">
99
<ul role="tablist" id="toggle-platform">
10-
<li id="android" class="button-android" aria-selected="false" role="tab" tabindex="0" aria-controls="androidtab" onclick="displayTab('platform', 'android')">
10+
<li id="android" className="button-android" aria-selected="false" role="tab" tabIndex="0" aria-controls="androidtab" onClick="displayTab('platform', 'android')">
1111
Android
1212
</li>
13-
<li id="ios" class="button-ios" aria-selected="false" role="tab" tabindex="0" aria-controls="iostab" onclick="displayTab('platform', 'ios')">
13+
<li id="ios" className="button-ios" aria-selected="false" role="tab" tabIndex="0" aria-controls="iostab" onClick="displayTab('platform', 'ios')">
1414
🚧 iOS
1515
</li>
1616
</ul>
1717
</div>
1818

19-
<block class="ios" />
19+
<block className="ios" />
2020

2121
> **Deprecated.** Use [react-native-tvos](https://github.com/react-native-community/react-native-tvos) instead. For the details please check the [0.62 release blog post](https://reactnative.dev/blog/#moving-apple-tv-to-react-native-tvos).
2222
@@ -39,7 +39,7 @@ var running_on_tv = Platform.isTV;
3939
var running_on_apple_tv = Platform.isTVOS;
4040
```
4141

42-
<block class="android" />
42+
<block className="android" />
4343

4444
## Build changes
4545

@@ -68,11 +68,11 @@ var Platform = require('Platform');
6868
var running_on_android_tv = Platform.isTV;
6969
```
7070

71-
<block class="ios android" />
71+
<block className="ios android" />
7272

7373
## Code changes
7474

75-
<block class="ios" />
75+
<block className="ios" />
7676

7777
- _General support for tvOS_: Apple TV specific changes in native code are all wrapped by the TARGET_OS_TV define. These include changes to suppress APIs that are not supported on tvOS (e.g. web views, sliders, switches, status bar, etc.), and changes to support user input from the TV remote or keyboard.
7878

@@ -84,23 +84,23 @@ var running_on_android_tv = Platform.isTV;
8484
- `onBlur` will be executed when the touchable view goes out of focus
8585
- `onPress` will be executed when the touchable view is actually selected by pressing the "select" button on the TV remote.
8686

87-
<block class="android" />
87+
<block className="android" />
8888

8989
- _Access to touchable controls_: When running on Android TV the Android framework will automatically apply a directional navigation scheme based on relative position of focusable elements in your views. The `Touchable` mixin has code added to detect focus changes and use existing methods to style the components properly and initiate the proper actions when the view is selected using the TV remote, so `TouchableWithoutFeedback`, `TouchableHighlight`, `TouchableOpacity` and `TouchableNativeFeedback` will work as expected. In particular:
9090

9191
- `onFocus` will be executed when the touchable view goes into focus
9292
- `onBlur` will be executed when the touchable view goes out of focus
9393
- `onPress` will be executed when the touchable view is actually selected by pressing the "select" button on the TV remote.
9494

95-
<block class="ios" />
95+
<block className="ios" />
9696

9797
- _TV remote/keyboard input_: A new native class, `RCTTVRemoteHandler`, sets up gesture recognizers for TV remote events. When TV remote events occur, this class fires notifications that are picked up by `RCTTVNavigationEventEmitter` (a subclass of `RCTEventEmitter`), that fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code:
9898

99-
<block class="android" />
99+
<block className="android"/>
100100

101101
- _TV remote/keyboard input_: A new native class, `ReactAndroidTVRootViewHelper`, sets up key events handlers for TV remote events. When TV remote events occur, this class fires a JS event. This event will be picked up by instances of the `TVEventHandler` JavaScript object. Application code that needs to implement custom handling of TV remote events can create an instance of `TVEventHandler` and listen for these events, as in the following code:
102102

103-
<block class="ios android" />
103+
<block className="ios android"/>
104104

105105
```jsx
106106
var TVEventHandler = require('TVEventHandler');
@@ -141,18 +141,28 @@ class Game2048 extends React.Component {
141141
}
142142
```
143143
144-
<block class="ios" />
144+
<block className="ios" />
145145
146146
- _Dev Menu support_: On the simulator, cmd-D will bring up the developer menu, similar to iOS. To bring it up on a real Apple TV device, make a long press on the play/pause button on the remote. (Please do not shake the Apple TV device, that will not work :) )
147147
148148
- _TV remote animations_: `RCTTVView` native code implements Apple-recommended parallax animations to help guide the eye as the user navigates through views. The animations can be disabled or adjusted with new optional view properties.
149149
150150
- _Back navigation with the TV remote menu button_: The `BackHandler` component, originally written to support the Android back button, now also supports back navigation on the Apple TV using the menu button on the TV remote.
151151
152-
<block class="android" />
152+
- _TabBarIOS behavior_: The `TabBarIOS` component wraps the native `UITabBar` API, which works differently on Apple TV. To avoid jittery re-rendering of the tab bar in tvOS (see [this issue](https://github.com/facebook/react-native/issues/15081)), the selected tab bar item can only be set from Javascript on initial render, and is controlled after that by the user through native code.
153+
154+
<block className="android" />
153155
154156
- _Dev Menu support_: On the simulator, cmd-M will bring up the developer menu, similar to Android. To bring it up on a real Android TV device, press the menu button or long press the fast-forward button on the remote. (Please do not shake the Android TV device, that will not work :) )
155157
158+
<block className="ios" />
159+
160+
- _Known issues_:
161+
162+
- [ListView scrolling](https://github.com/facebook/react-native/issues/12793). The issue can be worked around by setting `removeClippedSubviews` to false in ListView and similar components. For more discussion of this issue, see [this PR](https://github.com/facebook/react-native/pull/12944).
163+
164+
<block className="android" />
165+
156166
- _Known issues_:
157167
158-
- `TextInput` components do not work for now (i.e. they cannot receive focus, see [this comment](https://github.com/facebook/react-native/pull/16500#issuecomment-629285638)).
168+
- `InputText` components do not work for now (i.e. they cannot receive focus).

docs/button.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ Text to display for blindness accessibility features.
142142

143143
Color of the text (iOS), or background color of the button (Android).
144144

145-
| Type | Default |
146-
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
147-
| [color](colors) | <ins style="background: #2196F3" class="color-box"></ins>`'#2196F3'` <div class="label android">Android</div><hr/><ins style="background: #007AFF" class="color-box"></ins>`'#007AFF'` <div class="label ios">iOS</div> |
145+
| Type | Default |
146+
| --------------- | ------------------------------------------------------------- |
147+
| [color](colors) | <ins style={{background: '#2196F3'}} className="color-box" /> |
148+
149+
`'#2196F3'` <div className="label android">Android</div><hr/><ins style={{background: '#007AFF'}} className="color-box" /> `'#007AFF'` <div className="label ios">iOS</div> |
148150

149151
---
150152

docs/checkbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: checkbox
3-
title: 🚧 CheckBox
3+
title: '🚧 CheckBox'
44
---
55

66
> **Deprecated.** Use [@react-native-community/checkbox](https://github.com/react-native-community/react-native-checkbox) instead.

0 commit comments

Comments
 (0)