-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Feature: Tooltip for GBR #44277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feature: Tooltip for GBR #44277
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e289ec9
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr e08e392
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr 5552ef9
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr 947babf
fix: tooltip is overlap on native
tienifr 2bd2317
hide tooltip on navigating
tienifr b57704a
remove redundant changes
tienifr c43f1af
add condition to show tooltip: has completed onboarding
tienifr f53155f
fix lint
tienifr d7bef8b
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr 191bc7a
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr fa37e38
Merge branch 'main' of https://github.com/tienifr/App into feature/to…
tienifr b33c7cc
show tooltip when in lhn only
tienifr 3dba0d7
remove hide tooltip on navigate
tienifr 88e0299
create platform independant files
tienifr 9768b00
fix lint
tienifr 5e68892
fix: tooltip position
tienifr fae7803
lint fix
tienifr 4636950
Merge branch 'main' into feature/tooltip-for-gbr
tienifr 4096a9e
position
tienifr 38b68d1
lint fi
tienifr a03c1d9
hide tooltip
tienifr e7a58cc
android position
tienifr 863617e
flash issue
tienifr b9d1865
lint fix
tienifr 8883a82
resolve conflicts
tienifr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/components/LHNOptionsList/OptionRowRendererComponent/index.native.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import {CellContainer} from '@shopify/flash-list'; | ||
| import type {CellContainerProps} from '@shopify/flash-list/dist/native/cell-container/CellContainer'; | ||
|
|
||
| function OptionRowRendererComponent(props: CellContainerProps) { | ||
| return ( | ||
| <CellContainer | ||
| // eslint-disable-next-line react/jsx-props-no-spreading | ||
| {...props} | ||
| style={[props.style, {zIndex: -props.index}]} | ||
| /> | ||
| ); | ||
| } | ||
|
|
||
| OptionRowRendererComponent.displayName = 'OptionRowRendererComponent'; | ||
|
|
||
| export default OptionRowRendererComponent; |
3 changes: 3 additions & 0 deletions
3
src/components/LHNOptionsList/OptionRowRendererComponent/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| const OptionRowRendererComponent = undefined; | ||
|
|
||
| export default OptionRowRendererComponent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/components/Tooltip/EducationalTooltip/measureTooltipCoordinate/index.android.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type React from 'react'; | ||
| import type {LayoutRectangle, NativeMethods} from 'react-native'; | ||
|
|
||
| export default function measureTooltipCoordinate(target: React.Component & Readonly<NativeMethods>, updateTargetBounds: (rect: LayoutRectangle) => void, showTooltip: () => void) { | ||
| return target?.measure((x, y, width, height, px, py) => { | ||
| updateTargetBounds({height, width, x: px, y: py}); | ||
| showTooltip(); | ||
| }); | ||
| } |
9 changes: 9 additions & 0 deletions
9
src/components/Tooltip/EducationalTooltip/measureTooltipCoordinate/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type React from 'react'; | ||
| import type {LayoutRectangle, NativeMethods} from 'react-native'; | ||
|
|
||
| export default function measureTooltipCoordinate(target: React.Component & Readonly<NativeMethods>, updateTargetBounds: (rect: LayoutRectangle) => void, showTooltip: () => void) { | ||
| return target?.measureInWindow((x, y, width, height) => { | ||
| updateTargetBounds({height, width, x, y}); | ||
| showTooltip(); | ||
| }); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.