Skip to content

Conversation

@chiuam
Copy link

@chiuam chiuam commented Jan 28, 2021

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

This change adds tooltip support for the following components:

  1. Button
  2. Text
  3. Image
  4. Slider
  5. TextInput

Changelog

[CATEGORY] [TYPE] - Message

Test Plan

image

Microsoft Reviewers: Open in CodeFlow

@chiuam chiuam requested a review from alloy as a code owner January 28, 2021 18:22
@pull-bot
Copy link

pull-bot commented Jan 28, 2021

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

DetailsCATEGORY may be:
  • General
  • macOS
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against 6e53a76

@HeyImChris
Copy link

Are there any other controls that might need this? For instance macOS sliders have a tooltip to represent the % it's set to. Checkboxes also have tooltips and so can TextInputs on macOS. If we can easily enough get them all up and running that'd probably save us some time in the future

@chiuam
Copy link
Author

chiuam commented Jan 28, 2021

Are there any other controls that might need this? For instance macOS sliders have a tooltip to represent the % it's set to. Checkboxes also have tooltips and so can TextInputs on macOS. If we can easily enough get them all up and running that'd probably save us some time in the future

Sure, I added tooltip support to slider and text input. I think Checkbox has been removed from React Native and has a community module for it now - https://github.com/react-native-community/react-native-checkbox

@HeyImChris
Copy link

Run yarn flow-check-ios and you'll see a couple JS issues that'll need to get fixed up. Once that command is all green then it should be good to checkin.

@HeyImChris
Copy link

I tried cloning your branch and making this change myself but I don't have permissions to push to your fork (probably a good thing :)). You'll want to add onPress={() => {}} on line 63 in Button.js under tooltip={"Button tooltip"} for the CI errors to go away- then we can check in!

@chiuam chiuam merged commit 3089291 into microsoft:master Jan 29, 2021
HeyImChris pushed a commit to HeyImChris/react-native-macos that referenced this pull request Feb 5, 2021
HeyImChris added a commit that referenced this pull request Feb 9, 2021
* Add nullability checks (#704)

* Update RCTCxxBridge.mm

* add nullability checks

* 63 tooltips

* Add Tooltip support (#701)

Co-authored-by: chiuam <67026167+chiuam@users.noreply.github.com>
chiuam added a commit to chiuam/react-native-macos that referenced this pull request May 26, 2021
HeyImChris pushed a commit that referenced this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants