* BottomSheet migration to react-native-bottom-sheet * Refactor Emoji picker to use bottom sheet * Add skin selector * Add Emoji Skin Tone tutorial * add selected indicator to tone selector * feedback review * show tooltip after 750ms * ux feedback review * ux feedback review #2 * Hide emoji picker scroll indicator
38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
diff --git a/node_modules/react-native-walkthrough-tooltip/src/tooltip.d.ts b/node_modules/react-native-walkthrough-tooltip/src/tooltip.d.ts
|
|
index 5a7ef59..305d794 100644
|
|
--- a/node_modules/react-native-walkthrough-tooltip/src/tooltip.d.ts
|
|
+++ b/node_modules/react-native-walkthrough-tooltip/src/tooltip.d.ts
|
|
@@ -129,6 +129,8 @@ declare module 'react-native-walkthrough-tooltip' {
|
|
|
|
/** Will use given component instead of default react-native Modal component **/
|
|
modalComponent?: object;
|
|
+
|
|
+ children: React.ReactNode;
|
|
}
|
|
|
|
/**
|
|
diff --git a/node_modules/react-native-walkthrough-tooltip/src/tooltip.js b/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
|
|
index db612fd..0262d6d 100644
|
|
--- a/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
|
|
+++ b/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
|
|
@@ -212,7 +212,7 @@ class Tooltip extends Component {
|
|
this.setState(
|
|
{
|
|
windowDims: dims.window,
|
|
- contentSize: new Size(0, 0),
|
|
+ // contentSize: new Size(0, 0),
|
|
adjustedContentSize: new Size(0, 0),
|
|
anchorPoint: new Point(0, 0),
|
|
tooltipOrigin: new Point(0, 0),
|
|
@@ -268,9 +268,9 @@ class Tooltip extends Component {
|
|
this.childWrapper.current &&
|
|
typeof this.childWrapper.current.measure === 'function'
|
|
) {
|
|
- this.childWrapper.current.measure(
|
|
+ this.childWrapper.current.measureInWindow(
|
|
(x, y, width, height, pageX, pageY) => {
|
|
- const childRect = new Rect(pageX, pageY, width, height);
|
|
+ const childRect = new Rect(x, y, width, height);
|
|
if (
|
|
Object.values(childRect).every(value => value !== undefined)
|
|
) {
|