Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Doc: Links update #789

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 18 additions & 18 deletions Libraries/VRReactOverrides/Text.vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const viewConfig = {
/**
* A React component for displaying text.
*
* See https://facebook.github.io/react-native/docs/text.html
* See https://reactnative.dev/docs/text.html
*/

// $FlowFixMe(>=0.41.0)
Expand All @@ -62,105 +62,105 @@ const Text = createReactClass({
* When `numberOfLines` is set, this prop defines how text will be
* truncated.
*
* See https://facebook.github.io/react-native/docs/text.html#ellipsizemode
* See https://reactnative.dev/docs/text.html#ellipsizemode
*/
ellipsizeMode: PropTypes.oneOf(['head', 'middle', 'tail', 'clip']),
/**
* Used to truncate the text with an ellipsis.
*
* See https://facebook.github.io/react-native/docs/text.html#numberoflines
* See https://reactnative.dev/docs/text.html#numberoflines
*/
numberOfLines: PropTypes.number,
/**
* Set text break strategy on Android.
*
* See https://facebook.github.io/react-native/docs/text.html#textbreakstrategy
* See https://reactnative.dev/docs/text.html#textbreakstrategy
*/
textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']),
/**
* Invoked on mount and layout changes.
*
* See https://facebook.github.io/react-native/docs/text.html#onlayout
* See https://reactnative.dev/docs/text.html#onlayout
*/
onLayout: PropTypes.func,
/**
* This function is called on press.
*
* See https://facebook.github.io/react-native/docs/text.html#onpress
* See https://reactnative.dev/docs/text.html#onpress
*/
onPress: PropTypes.func,
/**
* This function is called on long press.
*
* See https://facebook.github.io/react-native/docs/text.html#onlongpress
* See https://reactnative.dev/docs/text.html#onlongpress
*/
onLongPress: PropTypes.func,
/**
* Defines how far your touch may move off of the button, before
* deactivating the button.
*
* See https://facebook.github.io/react-native/docs/text.html#pressretentionoffset
* See https://reactnative.dev/docs/text.html#pressretentionoffset
*/
pressRetentionOffset: EdgeInsetsPropType,
/**
* Lets the user select text.
*
* See https://facebook.github.io/react-native/docs/text.html#selectable
* See https://reactnative.dev/docs/text.html#selectable
*/
selectable: PropTypes.bool,
/**
* The highlight color of the text.
*
* See https://facebook.github.io/react-native/docs/text.html#selectioncolor
* See https://reactnative.dev/docs/text.html#selectioncolor
*/
selectionColor: ColorPropType,
/**
* When `true`, no visual change is made when text is pressed down.
*
* See https://facebook.github.io/react-native/docs/text.html#supperhighlighting
* See https://reactnative.dev/docs/text.html#supperhighlighting
*/
suppressHighlighting: PropTypes.bool,
style: stylePropType,
/**
* Used to locate this view in end-to-end tests.
*
* See https://facebook.github.io/react-native/docs/text.html#testid
* See https://reactnative.dev/docs/text.html#testid
*/
testID: PropTypes.string,
/**
* Used to locate this view from native code.
*
* See https://facebook.github.io/react-native/docs/text.html#nativeid
* See https://reactnative.dev/docs/text.html#nativeid
*/
nativeID: PropTypes.string,
/**
* Whether fonts should scale to respect Text Size accessibility settings.
*
* See https://facebook.github.io/react-native/docs/text.html#allowfontscaling
* See https://reactnative.dev/docs/text.html#allowfontscaling
*/
allowFontScaling: PropTypes.bool,
/**
* Indicates whether the view is an accessibility element.
*
* See https://facebook.github.io/react-native/docs/text.html#accessible
* See https://reactnative.dev/docs/text.html#accessible
*/
accessible: PropTypes.bool,
/**
* Whether font should be scaled down automatically.
*
* See https://facebook.github.io/react-native/docs/text.html#adjustsfontsizetofit
* See https://reactnative.dev/docs/text.html#adjustsfontsizetofit
*/
adjustsFontSizeToFit: PropTypes.bool,
/**
* Smallest possible scale a font can reach.
*
* See https://facebook.github.io/react-native/docs/text.html#minimumfontscale
* See https://reactnative.dev/docs/text.html#minimumfontscale
*/
minimumFontScale: PropTypes.number,
/**
* Specifies the disabled state of the text view for testing purposes.
*
* See https://facebook.github.io/react-native/docs/text.html#disabled
* See https://reactnative.dev/docs/text.html#disabled
*/
disabled: PropTypes.bool,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BasicAppTemplateInfoButton extends React.Component {
};

// This component has example to show how animation works
// You can check the doc: https://facebook.github.io/react-native/docs/0.49/animated#docsNav
// You can check the doc: https://reactnative.dev/docs/0.49/animated#docsNav
constructor(props) {
super(props);
this.state = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MediaAppTemplateInfoButton extends React.Component {
};

// This component has example to show how animation works
// You can check the doc: https://facebook.github.io/react-native/docs/0.49/animated#docsNav
// You can check the doc: https://reactnative.dev/docs/0.49/animated#docsNav
constructor(props) {
super(props);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion docs/animated.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sidebar_label: Animated

Animations are an important part of modern UX, and the `Animated` library is designed to make them fluid, powerful and easy to build and maintain. `Animated` makes it possible to toggle the size, position, and appearance of elements in your scene in a declarative style that fits into React.

The `Animated` library was originally implemented from React Native, and that is the version we use. To understand how it works, we recommend reading through [the React Native documentation](http://facebook.github.io/react-native/docs/animated.html).
The `Animated` library was originally implemented from React Native, and that is the version we use. To understand how it works, we recommend reading through [the React Native documentation](https://reactnative.dev/docs/animated.html).
2 changes: 1 addition & 1 deletion docs/explore-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Text is for drawing characters to the screen. If you're creating a 2D UI, this i

### Styling Content

The next block of code creates the styles applied to the code above. `StyleSheet` is a concept taken directly from [React Native](http://facebook.github.io/react-native/docs/style.html). React 360 supports the same style attributes as React Native, and its documentations should be used to understand the available options. The fields of the `style` object created at the bottom are referenced directly in the React code.
The next block of code creates the styles applied to the code above. `StyleSheet` is a concept taken directly from [React Native](https://reactnative.dev/docs/style.html). React 360 supports the same style attributes as React Native, and its documentations should be used to understand the available options. The fields of the `style` object created at the bottom are referenced directly in the React code.

### Exposing the React Component

Expand Down
2 changes: 1 addition & 1 deletion docs/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_label: Layout

## Layout in 2D Surfaces

Within the context of 2D surfaces, React 360 uses a layout technique called Flexbox. This constraint-based system of layout was originally developed for the web, but its power and ability to represent many different layout types lends itself to the declarative nature of React. It was adopted by React Native, from which React 360 borrows its implementation. The React Native documentation covers these topics well, and should be used to understand how to [size your objects](http://facebook.github.io/react-native/docs/height-and-width.html) and [lay them out in 2D space](http://facebook.github.io/react-native/docs/flexbox.html).
Within the context of 2D surfaces, React 360 uses a layout technique called Flexbox. This constraint-based system of layout was originally developed for the web, but its power and ability to represent many different layout types lends itself to the declarative nature of React. It was adopted by React Native, from which React 360 borrows its implementation. The React Native documentation covers these topics well, and should be used to understand how to [size your objects](https://reactnative.dev/docs/height-and-width.html) and [lay them out in 2D space](https://reactnative.dev/docs/flexbox.html).

## Layout in 3D Space

Expand Down