From 03992b7785ccdc7c92f93c5d6d66ef21ebafd12c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 2 Sep 2020 12:56:35 +0200 Subject: [PATCH 01/33] [package] Bump to currently published v0.62.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f2378829555fc..e18c777f162856 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "1000.0.0", + "version": "0.62.1", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 85acf4c82fea266c24a670bbfc3c4d4c2ac99f4e Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Wed, 2 Sep 2020 11:21:39 +0000 Subject: [PATCH 02/33] Applying package update to 0.62.2 ***NO_CI*** --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e18c777f162856..6d6b2559be5f8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.1", + "version": "0.62.2", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", @@ -198,4 +198,4 @@ "beachball": { "shouldPublish": false } -} +} \ No newline at end of file From 033d97a040fbc27e827464767086ed7fafd4ac8a Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 3 Sep 2020 16:30:10 +0000 Subject: [PATCH 03/33] Applying package update to 0.62.3 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6d6b2559be5f8f..94add5fb792aea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.2", + "version": "0.62.3", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From b34fadcf0a20fc93e2394a6c993dd283a33977e7 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 3 Sep 2020 20:45:12 +0000 Subject: [PATCH 04/33] Applying package update to 0.62.4 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 94add5fb792aea..9f968bd262e64e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.3", + "version": "0.62.4", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 3c220027dc175ef0d533cfa17bdd5e85f0b07506 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Fri, 4 Sep 2020 04:33:22 +0000 Subject: [PATCH 05/33] Applying package update to 0.62.5 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f968bd262e64e..89fcc5a04f3eb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.4", + "version": "0.62.5", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 164d73b6f674af814af79a3aafbd2ef90ebb44f4 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Tue, 8 Sep 2020 13:00:40 +0000 Subject: [PATCH 06/33] Applying package update to 0.62.6 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 89fcc5a04f3eb9..895baf572a9490 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.5", + "version": "0.62.6", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From e4e3c0ff0c8f431f8f87c52b1f9a25b2c8ee36b3 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Tue, 8 Sep 2020 17:35:01 +0000 Subject: [PATCH 07/33] Applying package update to 0.62.7 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 895baf572a9490..9db1b664d24ed6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.6", + "version": "0.62.7", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From c94519b350cccc40e2bd74f50b18b937b17ba10b Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 10 Sep 2020 13:34:48 +0000 Subject: [PATCH 08/33] Applying package update to 0.62.8 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9db1b664d24ed6..e2c856ee1fe8cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.7", + "version": "0.62.8", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 843ccf0caf227e3fe06886455ff04f168c46de60 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 10 Sep 2020 16:42:15 +0000 Subject: [PATCH 09/33] Applying package update to 0.62.9 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e2c856ee1fe8cf..e60ecd94b1768b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.8", + "version": "0.62.9", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From ae16d6e7cd987115bcf853c8ab9858709179fb60 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Fri, 11 Sep 2020 09:10:44 +0000 Subject: [PATCH 10/33] Applying package update to 0.62.10 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e60ecd94b1768b..de6231501c7264 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.9", + "version": "0.62.10", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From c6420e7df9c232e9affb31ec14c5cef5810e49cd Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Tue, 15 Sep 2020 21:55:32 +0000 Subject: [PATCH 11/33] Applying package update to 0.62.11 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de6231501c7264..88f7f511f7b8f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.10", + "version": "0.62.11", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From c5047cec201c9669c680c4409e2e02d06d37d82b Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Wed, 16 Sep 2020 22:42:52 +0000 Subject: [PATCH 12/33] Applying package update to 0.62.12 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 88f7f511f7b8f1..2b4820f5539a08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.11", + "version": "0.62.12", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From ba43807b7c3b133ca07519011aa4873d3c246e6c Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Mon, 21 Sep 2020 13:51:36 +0000 Subject: [PATCH 13/33] Applying package update to 0.62.13 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2b4820f5539a08..b9abbd5eba2d85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.12", + "version": "0.62.13", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 9b3150099c9970bc15997e398a896cc92d72ca89 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 24 Sep 2020 19:30:38 +0000 Subject: [PATCH 14/33] Applying package update to 0.62.14 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b9abbd5eba2d85..6e6ddfcf0c8514 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.13", + "version": "0.62.14", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 469597a6e13554b24b36295d681e0b7a5cea7623 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Mon, 28 Sep 2020 07:10:30 +0000 Subject: [PATCH 15/33] Applying package update to 0.62.15 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6e6ddfcf0c8514..18287a8947c849 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.14", + "version": "0.62.15", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From be9bd9bfba057066794e94bb622739d380292e89 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Wed, 7 Oct 2020 16:39:16 +0000 Subject: [PATCH 16/33] Applying package update to 0.62.16 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 18287a8947c849..cd493b2980da50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.15", + "version": "0.62.16", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 34672cbf1290256bbee91a3567d14fce1e1ef9a4 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Fri, 4 Dec 2020 07:19:30 +0000 Subject: [PATCH 17/33] Applying package update to 0.62.17 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd493b2980da50..3f54d367ad4db3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.16", + "version": "0.62.17", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 761c701825e27410b66dbacfc1401691e92647f2 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Fri, 4 Dec 2020 07:59:38 +0000 Subject: [PATCH 18/33] Applying package update to 0.62.18 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3f54d367ad4db3..648f4473c2b76b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.17", + "version": "0.62.18", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From d4737a7996abe0138ff47d54387fd02aaab681c3 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Fri, 4 Dec 2020 09:00:01 +0000 Subject: [PATCH 19/33] Applying package update to 0.62.19 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 648f4473c2b76b..bbdd51bd9e400e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.18", + "version": "0.62.19", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 71f64477237ec8faf324f55e5cd90ff9f2be7117 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 17 Dec 2020 00:02:14 +0000 Subject: [PATCH 20/33] Applying package update to 0.62.20 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bbdd51bd9e400e..ea056c489c1420 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.19", + "version": "0.62.20", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 0be3b608725ec2ee3594aff8db753d468e34d712 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Thu, 17 Dec 2020 23:01:57 +0000 Subject: [PATCH 21/33] Applying package update to 0.62.21 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea056c489c1420..ff53389af2bb14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.20", + "version": "0.62.21", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 246716325235c31bed2e08f5167d55ca1bd1e8d3 Mon Sep 17 00:00:00 2001 From: Anandraj Date: Fri, 15 Jan 2021 20:08:09 -0800 Subject: [PATCH 22/33] Ensuring that the same version of folly is built as well as packaged (#690) --- .ado/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ado/publish.yml b/.ado/publish.yml index a7aa543c28e1bb..792d3638c352d4 100644 --- a/.ado/publish.yml +++ b/.ado/publish.yml @@ -140,7 +140,7 @@ jobs: - task: CmdLine@2 displayName: gradlew installArchives inputs: - script: REACT_NATIVE_BOOST_PATH=$(System.DefaultWorkingDirectory)/build_deps ./gradlew installArchives -Pparam="excludeLibs" + script: REACT_NATIVE_DEPENDENCIES=$(System.DefaultWorkingDirectory)/build_deps ./gradlew installArchives -Pparam="excludeLibs" - template: templates\prep-android-nuget.yml From b7fc708ea7aab32fb30ea2d6ab950e18e6558f41 Mon Sep 17 00:00:00 2001 From: React-Native Bot <53619745+rnbot@users.noreply.github.com> Date: Sat, 16 Jan 2021 04:11:18 +0000 Subject: [PATCH 23/33] Applying package update to 0.62.22 ***NO_CI*** --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ff53389af2bb14..19363ce446d9f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.62.21", + "version": "0.62.22", "bin": "./cli.js", "description": "[Microsoft Fork] A framework for building native apps using React", "license": "MIT", From 2c967a8c5a47c0822432b19d70ea673dad5382aa Mon Sep 17 00:00:00 2001 From: chiuam <67026167+chiuam@users.noreply.github.com> Date: Wed, 27 Jan 2021 17:26:34 -0500 Subject: [PATCH 24/33] Add tooltip support --- Libraries/Components/Button.js | 6 +++ Libraries/Text/Text.js | 1 + Libraries/Text/TextProps.js | 9 ++++ .../js/examples/Tooltip/TooltipExample.js | 45 +++++++++++++++++++ RNTester/js/utils/RNTesterList.ios.js | 5 +++ 5 files changed, 66 insertions(+) create mode 100644 RNTester/js/examples/Tooltip/TooltipExample.js diff --git a/Libraries/Components/Button.js b/Libraries/Components/Button.js index f7c8abadef1ec4..1c9dda5b7df59f 100644 --- a/Libraries/Components/Button.js +++ b/Libraries/Components/Button.js @@ -154,6 +154,10 @@ type ButtonProps = $ReadOnly<{| * For arrow keys, add "leftArrow", "rightArrow", "upArrow", "downArrow", */ validKeysUp?: ?Array, + /* + * Specifies the Tooltip for the view + */ + tooltip?: string, // ]TODO(OSS Candidate ISS#2710739) |}>; @@ -211,6 +215,7 @@ class Button extends React.Component { validKeysDown, validKeysUp, onKeyUp, + tooltip, } = this.props; const buttonStyles = [styles.button]; const textStyles = [styles.text]; @@ -261,6 +266,7 @@ class Button extends React.Component { onKeyUp={onKeyUp} validKeysDown={validKeysDown} validKeysUp={validKeysUp} + tooltip={tooltip} touchSoundDisabled={touchSoundDisabled}> diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index 660dd87976121f..8a33e8558f0aed 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -68,6 +68,7 @@ const viewConfig = { onTextLayout: true, onInlineViewLayout: true, dataDetectorType: true, + tooltip: true, }, directEventTypes: { topTextLayout: { diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index 009929e8ff7076..1df64f291cf1f9 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -187,4 +187,13 @@ export type TextProps = $ReadOnly<{| * See https://reactnative.dev/docs/text.html#supperhighlighting */ suppressHighlighting?: ?boolean, + + /** + * macOS Only + */ + + /** + * Specifies the Tooltip for the button view + */ + tooltip?: ?string, |}>; diff --git a/RNTester/js/examples/Tooltip/TooltipExample.js b/RNTester/js/examples/Tooltip/TooltipExample.js new file mode 100644 index 00000000000000..443ff0cab26358 --- /dev/null +++ b/RNTester/js/examples/Tooltip/TooltipExample.js @@ -0,0 +1,45 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow + * @format + */ + +'use strict'; + +const React = require('react'); +const {Button, Text} = require('react-native'); + +exports.displayName = 'TooltipExample'; +exports.framework = 'React'; +exports.title = 'Tooltip'; +exports.description = 'Examples that show how tooltip works in various components.'; + +exports.examples = [ + { + title: 'Button', + description: ('Simple button to showcase tooltip.': string), + render: function(): React.Node { + return ( +