Conversation
ToolTip.ios.js
Outdated
| const ToolTipMenu = NativeModules.ToolTipMenu; | ||
| const RCTToolTipText = requireNativeComponent('RCTToolTipText', null); | ||
|
|
||
| export let isToolTipVisible = false; |
There was a problem hiding this comment.
i would put this in the component and expose via ref. this.refs.tooltip.isToolTipVisible.
There was a problem hiding this comment.
the idea is to use it as an import.
if you have multiple tooltip components and you want to know if there is at least one of those components showing the tooltip without looping though all of them.
does it make sense?
There was a problem hiding this comment.
if you have multiple tooltip components and you want to know if there is at least one of those components showing the tooltip without looping though all of them.
That sounds like a state that should live in your application then. It's little weird to keep this global export in a library.idk
|
lgtm otherwise |
|
@chirag04 agree, I removed the |
|
@enahum i guess update the readme also and merge. |
|
This is a much bigger refactor than my PR, which works for me up to and including RN 0.53. Looks like a nice cleanup, if everything still works the same! |
|
@fungilation yeap everything works the same ;) @chirag04 readme updated and merging... |
@chirag04 let me know if it is ok to merge and how can we do the update of the npm library ;)